nuxt 运行项目报错

新手上路,请多包涵

在 mac OS下运行一个项目,之前还是可以正常跑起来的,今天突然报错。错误日志如下:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'serve' ]
2 info using npm@6.7.0
3 info using node@v10.15.1
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info lifecycle nuxt-te@1.0.0~preserve: nuxt-te@1.0.0
6 info lifecycle nuxt-te@1.0.0~serve: nuxt-te@1.0.0
7 verbose lifecycle nuxt-te@1.0.0~serve: unsafe-perm in lifecycle true
8 verbose lifecycle nuxt-te@1.0.0~serve: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/ffe/nuxt-te/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/Users/ffe/apache-maven-3.6.0/bin
9 verbose lifecycle nuxt-te@1.0.0~serve: CWD: /Users/ffe/nuxt-te
10 silly lifecycle nuxt-te@1.0.0~serve: Args: [ '-c', 'cross-env NODE_ENV=production pm2 start pm2.json' ]
11 silly lifecycle nuxt-te@1.0.0~serve: Returned: code: 1 signal: null
12 info lifecycle nuxt-te@1.0.0~serve: Failed to exec serve script
13 verbose stack Error: nuxt-te@1.0.0 serve: cross-env NODE_ENV=production pm2 start pm2.json
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:189:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid nuxt-te@1.0.0
15 verbose cwd /Users/ffe/nuxt-te
16 verbose Darwin 18.6.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "serve"
18 verbose node v10.15.1
19 verbose npm v6.7.0
20 error code ELIFECYCLE
21 error errno 1
22 error nuxt-te@1.0.0 serve: cross-env NODE_ENV=production pm2 start pm2.json
22 error Exit status 1
23 error Failed at the nuxt-te@1.0.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 ]

求大神指教

阅读 2.4k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题