npm err! fibers@4.0.2 install: `node build.js || nodejs build.js` when installing Vuetify in Nuxt(NPM错误!在Nuxt中安装Vuentify时,fires@4.0.2 install:`node build.js||NodeJS build.js`)
问题描述
我使用npx create-nuxt-app
但在运行dev servernpm run dev
时出现以下错误
╭──────────────────────────────────────────────────────────────────╮
│ │
│ ✖ Nuxt Fatal Error │
│ │
│ Error: Module `@nuxtjs/vuetify` not found. Please ensure │
│ `@nuxtjs/vuetify` is in `devDependencies` and installed. │
│ HINT: During build step, for npm/yarn, `NODE_ENV=production` │
│ or `--production` should NOT be used. │
│ │
╰──────────────────────────────────────────────────────────────────╯
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! src@1.0.0 dev: `nuxt`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the src@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
当我尝试运行npm install
时,它显示错误(此消息取自npm-cache日志)
781 verbose stack Error: fibers@4.0.2 install: `node build.js || nodejs build.js`
781 verbose stack Exit status 1
781 verbose stack at EventEmitter.<anonymous> (C:Program Files
odejs
ode_modules
pm
ode_modules
pm-lifecycleindex.js:332:16)
781 verbose stack at EventEmitter.emit (events.js:321:20)
781 verbose stack at ChildProcess.<anonymous> (C:Program Files
odejs
ode_modules
pm
ode_modules
pm-lifecyclelibspawn.js:55:14)
781 verbose stack at ChildProcess.emit (events.js:321:20)
781 verbose stack at maybeClose (internal/child_process.js:1026:16)
781 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
782 verbose pkgid fibers@4.0.2
783 verbose cwd H:\_medical_reports_(_arkham_asylum_)OthersCodeWebvscodegit ravelersofbanagladeshclientsrc
784 verbose Windows_NT 6.1.7601
785 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
786 verbose node v13.8.0
787 verbose npm v6.13.6
788 error code ELIFECYCLE
789 error errno 1
790 error fibers@4.0.2 install: `node build.js || nodejs build.js`
790 error Exit status 1
791 error Failed at the fibers@4.0.2 install script.
791 error This is probably not a problem with npm. There is likely additional logging output above.
792 verbose exit [ 1, true ]
这是一个全新的Nuxt应用,我没有碰过任何文件
我还尝试使用Vue cli创建Nuxt应用程序,它起作用了(没有使用vutify),当我尝试安装vutify时,它也出现了类似的错误
我使用的是今天全新安装的Vue 2.9.6和节点13.8.0
推荐答案
node
版本14在Windows计算机上使用vutify创建nuxt应用程序时会导致此问题。目前唯一已知的解决方案是将node
降级到版本12 LTS。
引用:
nuxt/create-nuxt-app
nuxt-community/vuetify-module
编辑:link for all node releases downloads
这篇关于NPM错误!在Nuxt中安装Vuentify时,fires@4.0.2 install:`node build.js||NodeJS build.js`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:NPM错误!在Nuxt中安装Vuentify时,fires@4.0.2 install:`node build.js||NodeJS build.js`
基础教程推荐
- 在for循环中使用setTimeout 2022-01-01
- 当用户滚动离开时如何暂停 youtube 嵌入 2022-01-01
- Karma-Jasmine:如何正确监视 Modal? 2022-01-01
- 有没有办法使用OpenLayers更改OpenStreetMap中某些要素 2022-09-06
- 响应更改 div 大小保持纵横比 2022-01-01
- 在 JS 中获取客户端时区(不是 GMT 偏移量) 2022-01-01
- 角度Apollo设置WatchQuery结果为可用变量 2022-01-01
- 悬停时滑动输入并停留几秒钟 2022-01-01
- 我什么时候应该在导入时使用方括号 2022-01-01
- 动态更新多个选择框 2022-01-01