'Nuxt.js on Ubuntu: Plugin not found app/.nuxt/components/plugin.js

I changed Os from Windows to Ubuntu. In Windows, everything works without problems, however, on ubuntu, with the 'yarn' and 'yarn dev' commands, the script crashes and displays the following. Node Installed with nvm. What could be the problem? 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)

package.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 1:[1]

Had the same error today.

Luckily the solution that worked for me was posted a few minutes ago on the 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 [email protected] to fix it for the moment.

Solution 2:[2]

I moved app folder into folder located in home dir and it works. Defenetly problem is hard disk path. Who knowns about it?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ColdIV
Solution 2 Sabrina Louge