![](/img/trans.png)
[英]Typescript error in docker build during npm run build
[英]I found an error during the npm run build
我通过 git 将 nuxt 项目上传到 linux 服务器,然后是“npm upgrade nuxt”,然后是“npm run build”。 但是,我在构建时遇到了错误。 我应该怎么办?
这是我的错误代码
FATAL Nuxt build error 00:42:06
at WebpackBundler.webpackCompile (node_modules/@nuxt/webpack/dist/webpack.js:5309:21)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:182:7)
╭─────────────────────────────╮
│ │
│ ✖ Nuxt Fatal Error │
│ │
│ Error: Nuxt build error │
│ │
╰─────────────────────────────╯
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! all_find@1.0.0 build: `nuxt build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the all_find@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
这是一个 nvm 版本问题。 将其更新到最新版本,您将通过此问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.