未在服务器上生成Nuxt.js项目构建

时间:2019-06-17 11:28:47

标签: ubuntu nuxt.js nuxt

nuxt.js项目中,未使用NPM run build生成构建

我尝试删除node_modules目录和package-lock.json并再次运行NPM安装

✔ Builder initialized                                                                                                                           11:02:43
✔ Nuxt files generated                                                                                                                          11:02:44

● Client █████████████████████████ building (31%) 177/199 modules 22 active
 ...vue

◯ Server



 ERROR  (node:9459) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead                                             11:02:47

Killed
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! Moadaty@1.0.0 build: `nuxt build`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the Moadaty@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-06-17T11_02_57_028Z-debug.log

1 个答案:

答案 0 :(得分:0)

我遇到同样的错误,但是我的构建仍然完成,并且构建服务器和开发服务器都可以正常工作。您的构建脚本中是否可能还有其他问题?

{{1}}