Vue-cli v3.11.0 创建的新项目运行 npm run serve 失败

node: v10.16.3
vue-cli: v3.11.0
npm 源: https://registry.npm.taobao.org


安装好 vue-cli 后,使用 vue create atest 创建了一个测试用的项目。并且选的都是默认的基本配置。

可以正常地执行 npm run build,但是执行 npm run serve 却失败了。
期间换了新环境,结果还是一样

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/stow/node-v10.16.3-linux-x64/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'serve' ]
2 info using npm@6.9.0
3 info using node@v10.16.3
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info lifecycle atest@0.1.0~preserve: atest@0.1.0
6 info lifecycle atest@0.1.0~serve: atest@0.1.0
7 verbose lifecycle atest@0.1.0~serve: unsafe-perm in lifecycle true
8 verbose lifecycle atest@0.1.0~serve: PATH: /usr/local/stow/node-v11.16.3-linux-x64/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/wk/vue/atest/node_modules/.bin:/root/.vscode-server/bin/b37e54c98e1a74ba89e03073e5a3761284e3ffb0/bin:/root/.vscode-server/bin/b37e54c98e1a74ba89e03073e5a3761284e3ffb0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/.bin/:/root/.bin/:/root/bin:/root/.bin/
9 verbose lifecycle atest@0.1.0~serve: CWD: /root/wk/vue/atest
10 silly lifecycle atest@0.1.0~serve: Args: [ '-c', 'vue-cli-service serve' ]
11 silly lifecycle atest@0.1.0~serve: Returned: code: 1  signal: null
12 info lifecycle atest@0.1.0~serve: Failed to exec serve script
13 verbose stack Error: atest@0.1.0 serve: `vue-cli-service serve`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/stow/node-v10.16.3-linux-x64/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:198:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/stow/node-v10.16.3-linux-x64/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:198:13)
13 verbose stack     at maybeClose (internal/child_process.js:982:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid atest@0.1.0
15 verbose cwd /root/wk/vue/atest
16 verbose Linux 3.10.0-957.el7.x86_64
17 verbose argv "/usr/local/stow/node-v10.16.3-linux-x64/bin/node" "/usr/local/bin/npm" "run" "serve"
18 verbose node v10.16.3
19 verbose npm  v6.9.0
20 error code ELIFECYCLE
21 error errno 1
22 error atest@0.1.0 serve: `vue-cli-service serve`
22 error Exit status 1
23 error Failed at the atest@0.1.0 serve script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&tn=02003390_42_hao_pg&wd=System%20limit%20for%20number%20of%20file%20watchers%20reached&oq=system%20limit%20for%20number&rsv_pq=886b2286000a8843&rsv_t=b591jLwPq12CWRiEY4%2F%2BZpIVI3eoTcOk8QTHIN8W2NzQLNZ0KhnWiu8sQ1G6y9s0CR9EhRUELxZY&rqlang=cn&rsv_enter=0&rsv_dl=tb&rsv_n=2&rsv_sug3=1&inputT=1123&rsv_sug4=1123

今天再试了一次,已经莫名好了,什么也没动,真是…