linvis / electron-serialtool

electron编写的串口工具
MIT License
1 stars 0 forks source link

Can't run "npm install" on macOS #1

Closed linvis closed 5 years ago

linvis commented 5 years ago

环境:macOS Mojave 10.14.3, npm 5.6.0 编译安装遇到一些问题。

  1. eslint需要全局安装(本地安装会报sh: eslint: command not found)
  2. 执行npm install 遇到9个错误()
  3. jquery本地依赖缺失

执行npm install 遇到9个错误()

electron-serialtool git:(master) ✗ npm install

app@0.0.0 postinstall /Users/lin/wspace/git/electron-serialtool npm run lint:fix

app@0.0.0 lint:fix /Users/lin/wspace/git/electron-serialtool eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src

http://eslint.org/docs/rules/no-unused-vars 'Vue' is defined but never used src/renderer/components/LandingPage.vue:139:8 import Vue from 'vue' ^ ✘ http://eslint.org/docs/rules/no-unused-vars 'Terminal' is defined but never used src/renderer/components/LandingPage.vue:140:10 import { Terminal } from 'xterm' ^

http://eslint.org/docs/rules/one-var Split initialized 'let' declarations into multiple statements src/renderer/components/LandingPage.vue:146:1 let portList = [], ^

http://eslint.org/docs/rules/handle-callback-err Expected error to be handled src/renderer/components/LandingPage.vue:154:19 SerialPort.list(function (err, ports) { ^

http://eslint.org/docs/rules/no-dupe-keys Duplicate key 'methods' src/renderer/components/LandingPage.vue:269:3 methods: { ^

http://eslint.org/docs/rules/no-redeclare 'recvArea' is already defined src/renderer/components/LandingPage.vue:333:13 var recvArea = $('#recvArea .ivu-card-body') ^

http://eslint.org/docs/rules/one-var Split initialized 'let' declarations into multiple statements src/renderer/components/LandingPage2.vue:171:1 let portList = [], ^

http://eslint.org/docs/rules/handle-callback-err Expected error to be handled src/renderer/components/LandingPage2.vue:179:19 SerialPort.list(function (err, ports) { ^

http://eslint.org/docs/rules/no-undef 'term' is not defined src/renderer/components/LandingPage2.vue:363:9 term.write(data) ^

✘ 9 problems (9 errors, 0 warnings)