当我运行nuxt porject时,出现应用程序崩溃错误

问题描述 投票:0回答:1

昨天我的计算机重新安装。我尝试重新运行nuxt项目。但是有错误。

nvm版本g:1.1.7

节点版本:10.12.0

npm版本:6.4.1

nuxt版本:2.0.0

package.json

  "scripts": {
    "dev": "cross-env NODE_ENV=development nodemon server/index.js --watch server",
    "build": "nuxt build",
    "start": "cross-env NODE_ENV=production node server/index.js",
    "generate": "nuxt generate",
    "lint": "eslint --ext .js,.vue --ignore-path .gitignore ."
  },

当我运行npm run dev时,有此消息

[nodemon] 1.19.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching dir(s): server\**\*
[nodemon] starting `node server/index.js`
[nodemon] app crashed - waiting for file changes before starting...

当我运行npm run build时,有此消息

npm ERR! code ELIFECYCLE
npm ERR! errno 3221225477
npm ERR! [email protected] build: `nuxt build`
npm ERR! Exit status 3221225477
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

对不起,这是什么问题。

谢谢。

nuxt.js nuxt
1个回答
0
投票

我禁用nvm,并安装节点,该porject可以运行

© www.soinside.com 2019 - 2024. All rights reserved.