先去 Nodejs 官网下载安装自己电脑操作系统对应的版本
https://nodejs.org/en
然后看一下安装的版本,是否安装成功
node -v
npm -v
如果你更喜欢使用 yarn 则安装 yarn
npm i -g yarn
先用 git clone 源代码到本地
git clone https://github.com/ywqonly/turnUpAutoRun.git
cd turnUpAutoRun
如果是 Windows 电脑没有安装 git,先去下面网站下载安装 git 软件
https://gitforwindows.org
cp config.js.example config.js
const config = {
// 定时执行规则,默认5分钟一次,其他规则可以参考:https://juejin.cn/post/7163608389233147918
corn: "0 */5 * * * *",
// 需要执行的token,用电脑登录之后,按F12,取userinfo接口传的token
tokens: ["1","2","3"]
}
npm i
or
yarn install
node index.js
or
yarn start
or
npm run start