vue project, npm run dev works well on windows, but it doesn"t work well on mac
http-server installation is fine, port is not occupied, upgrade npm or downgrade, delete node_modules are not easy to use
related codes
0 info it worked if it ends with ok
1 verbose cli ["/ usr/local/bin/node","/ usr/local/bin/npm", "run"," dev"]
2 info using npm@6.4.1
3 info using node@v10.14.2
4 verbose run-script ["predev"," dev", "postdev"]
5 info lifecycle com.XXX@0.0.1~predev: com.XXX@0.0.1
6 info lifecycle com.XXX@0.0.1~dev: com.XXX@0.0.1
7 verbose lifecycle com.XXX@0.0.1~dev: unsafe-perm in lifecycle true
8 verbose lifecycle com.XXX@0.0.1~dev: PATH: / usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/htgl/Desktop/webUI/node_ Modules/.bin:/Users/htgl/.rvm/gems/ruby-2.4.0/bin:/Users/htgl/.rvm/gems/ruby-2.4.0@global/bin:/Users/htgl/.rvm/rubies/ruby-2.4.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/htgl/.rvm/bin
9 verbose lifecycle com.XXX@0.0.1~dev: CWD: / Users/htgl/Desktop / webUI
10 silly lifecycle com.XXX@0.0.1~dev: Args: ["- centering,
10 silly lifecycle "webpack-dev-server-- content-base. /-- host 127.0.0.1-- port 8092-- open-- inline-- hot-- compress-- config build/webpack.dev.config.js"]
11 silly lifecycle com.XXX@0.0.1~dev: Returned: code: 1 signal: null
12 info lifecycle com.XXX@0.0.1~dev: Failed to exec dev script
13 verbose stack Error: com.XXX@0.0.1 dev: webpack-dev-server-- content -base. /-- host 127.0.0.1-- port 8092-- open-- inline-- hot-- compress-- config build/webpack.dev.config.js
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess.
13 verbose stack at ChildProcess.emit (events.js:182:13)
13 verbose stack at maybeClose (internal/child_process.js:962:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
14 verbose pkgid com.XXX@0.0.1
15 verbose cwd / Users/htgl/Desktop/webUI
16 verbose Darwin 17.7. 0
17 verbose argv "/ usr/local/bin/node" / usr/local/bin/npm "run"dev"
18 verbose node v10.14.2
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error com.XXX@0.0.1 dev: webpack-dev-server-- content-base. /-- host 127.0.0.1-- port 8092-open-- inline-- hot-- compress-- config build/webpack.dev.config.js
22 error Exit Status 1
23 error Failed at the com.XXX@0.0.1 dev script.
23 error This is probably not a problem with npm