gpt4 book ai didi

ubuntu - Ubuntu 上的 Nuxt.js : Plugin not found app/. nuxt/components/plugin.js

转载 作者:行者123 更新时间:2023-12-04 18:42:51 24 4
gpt4 key购买 nike

我将操作系统从 Windows 更改为 Ubuntu。在 Windows 中,一切正常,但是,在 ubuntu 上,使用“yarn”和“yarn dev”命令,脚本崩溃并显示以下内容。使用 nvm 安装的节点。可能是什么问题呢?
folder is
yarn dev screenshot

$ yarn dev
yarn run v1.22.17
$ nuxt

╭───────────────────────────────────────╮
│ │
│ Nuxt @ v2.15.8 │
│ │
│ ▸ Environment: development │
│ ▸ Rendering: client-side │
│ ▸ Target: static │
│ │
│ Listening: http://localhost:3000/ │
│ │
╰───────────────────────────────────────╯

ℹ Preparing project for development 07:54:56
ℹ Initial build may take a while 07:54:56
ℹ Discovered Components: .nuxt/components/readme.md 07:54:56
✔ Builder initialized 07:54:56
✔ Nuxt files generated 07:55:02

ERROR Plugin not found: /media/sapiens/Seagate[1000]/91-Sergey/Projects/katusha-nuxt/.nuxt/components/plugin.js

at node_modules/@nuxt/builder/dist/builder.js:740:15
at async Promise.all (index 0)
at async Builder.build (node_modules/@nuxt/builder/dist/builder.js:324:5)
at async Object._buildDev (node_modules/@nuxt/cli/dist/cli-dev.js:107:5)
at async Object.startDev (node_modules/@nuxt/cli/dist/cli-dev.js:65:7)
at async Object.run (node_modules/@nuxt/cli/dist/cli-dev.js:52:5)
at async NuxtCommand.run (node_modules/@nuxt/cli/dist/cli-index.js:413:7)
包.json
{
"name": "katusha",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate"
},
"dependencies": {
"@nuxtjs/pwa": "^3.3.5",
"core-js": "^3.15.1",
"nuxt": "^2.15.7",
"nuxt-svg-loader": "^1.2.0",
"swiper": "5.4.5",
"vue-awesome-swiper": "4.1.1",
"vue-ripple-directive": "^2.0.1",
"vue-scrollto": "^2.20.0",
"vue-yandex-maps": "^0.10.12",
"vue2-datepicker": "^3.10.2"
},
"devDependencies": {
"@nuxtjs/style-resources": "^1.2.1",
"fibers": "^5.0.0",
"node-sass": "^6.0.1",
"sass": "^1.39.2",
"sass-loader": "10"
}

最佳答案

今天有同样的错误。
幸运的是 solution对我有用的是几分钟前在 nuxt.js GitHub 上发布的。

The error is caused by a new version of glob used by @nuxt/builder. More details: isaacs/node-glob#471
Use npm i --save glob@7.2.0 to fix it for the moment.

关于ubuntu - Ubuntu 上的 Nuxt.js : Plugin not found app/. nuxt/components/plugin.js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69685255/

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