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

标签 ubuntu nuxt.js nuxt

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

我试图删除node_modules目录和package-lock.json并再次运行NPM install

✔ 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

最佳答案

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

✔ Builder initialized                                                                                                               
16:50:48
✔ Nuxt files generated                                                                                                              
16:50:48

✔ Client
  Compiled successfully in 22.22s


 ERROR  (node:9473) DeprecationWarning: Tapable.plugin is deprecated. Use new API on 
.hooks instead                                 16:50:56


Hash: 9ca2420933de76ba890d
Version: webpack 4.33.0
Time: 22216ms
Built at: 06/20/2019 4:51:18 PM

关于ubuntu - 未在服务器上生成Nuxt.js项目构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56630387/

相关文章:

Python 和 MS Word : Convert . 文档到 .docx?

vue.js - nuxt.js - 如何在服务器端为所有客户端缓存 axios 调用

javascript - 如何使 v-stepper 步骤始终显示在页面顶部?

javascript - 使用 nuxt-link 在链接中传递 id 号

node.js - 部署Nuxt App后,baseURL是否仍为localhost?

node.js - 每 5 分钟运行一次命令,并在该时间结束时停止

amazon-web-services - 将文件从本地传输和更新到 AWS Ubuntu

node.js - 在 ubuntu 服务器上安装和配置 Nodejs 应用程序