Vue npm run dev reported an error

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. (/ usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess. (/ usr/local) / lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
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

the cause of this problem and the success of npm run dev

Mar.09,2022

take a look at it first

npm audit fix --force

then npm audit

there is also the difference between window and mac. You can refer to this
https://stackoverflow.com/que.

.

I have also had this problem. Windows is OK but Mac is not. The first reaction is that it is the version of node. Just update the version of Mac

.

clipboard.png


upgraded nodejs is not easy to use. Finally, it works well after downgrading nodejs, to version 8.11.3, but I don't know the specific reason. I hope you don't hesitate to answer if you know.


it is recommended to reinstall node_modules.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaeff7-6998f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaeff7-6998f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?