yarn 全局安装 electron At centos

[root@localhost node_modules]# yarn global add electron
yarn global v1.21.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "electron@8.0.2" with binaries:
      - electron
Done in 2.73s.
[root@localhost node_modules]# yarn global add node-sass
yarn global v1.21.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "node-sass@4.13.1" with binaries:
      - node-sass
Done in 311.60s.
[root@localhost electron-vue-admin]# npm run lint:fix

> electron-vue-admin@3.0.0 lint:fix /mnt1t/JAVA_HOME/__desktop__/electron-vue-admin
> eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src

其实就是 run 的

"lint:fix": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src",

请先后发表评论
  • 最新评论
  • 总共0条评论