[英]I found an error during the npm run build
I uploaded the nuxt project to the linux server through git, followed by 'npm upgrade nuxt' and then 'npm run build'.我通过 git 将 nuxt 项目上传到 linux 服务器,然后是“npm upgrade nuxt”,然后是“npm run build”。 However, I encountered an error while building.
但是,我在构建时遇到了错误。 What should I do?
我应该怎么办?
Here is my error code这是我的错误代码
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.
This is a nvm version issue.这是一个 nvm 版本问题。 update it to the latest version and you will be through this issue
将其更新到最新版本,您将通过此问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.