gpt4 book ai didi

vue.js - 错误!光纤@4.0.2 安装 : `node build.js || nodejs build.js` when installing Vuetify in Nuxt

转载 作者:行者123 更新时间:2023-12-04 10:21:57 30 4
gpt4 key购买 nike

我使用 npx create-nuxt-app 创建了一个 Nuxt 应用程序

但是当运行开发服务器时 npm 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\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
781 verbose stack at EventEmitter.emit (events.js:321:20)
781 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.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_)\Others\Code\Web\vscodegit\travelersofbanagladesh\client\src
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 应用程序并且它工作正常(没有 vuetify)并且在尝试安装 vuetify 时它给出了类似的错误

我正在使用今天全新安装的 Vue 2.9.6 和 Node 13.8.0

最佳答案

node在 Windows 机器上使用 vuetify 创建 nuxt 应用程序时,版本 14 会导致此问题。目前唯一已知的解决方案是降级 node到版本 12 LTS。
引用:
nuxt/create-nuxt-app
nuxt-community/vuetify-module
编辑:link for all node releases downloads

关于vue.js - 错误!光纤@4.0.2 安装 : `node build.js || nodejs build.js` when installing Vuetify in Nuxt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60812606/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com