I uploaded the nuxt project to the linux server through git, followed by 'npm upgrade nuxt' and then '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. update it to the latest version and you will be through this issue
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.