Giter Site home page Giter Site logo

Comments (22)

EternalC0der avatar EternalC0der commented on May 9, 2024 15

.nuxtrc is located at C:\users\%username%\ in windows (not sure about Unix)
If you want to completely remove nuxt devtools, try this

  1. Run npm remove -g @nuxt/devtools`
  2. Delete C:\users\%username%\.nuxtrc

However, you can install @nuxt/devtools manually as a local package which seems more stable to me, and it doesn't affect other nuxt projects.

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024 1

.nuxtrc is located at C:\users\%username%\ in windows (not sure about Unix) If you want to completely remove nuxt devtools, try this

  1. Run npm remove -g @nuxt/devtools`
  2. Delete C:\users\%username%\.nuxtrc

However, you can install @nuxt/devtools manually as a local package which seems more stable to me, and it doesn't affect other nuxt projects.

It's worked by follow the step!
By the way, .nuxtrc file on linux is also located at ~/.nuxtrc

from devtools.

husayt avatar husayt commented on May 9, 2024 1

i get the same error on windows/node18/pnpm and latest nuxt

image

from devtools.

antfu avatar antfu commented on May 9, 2024 1

Closing as this issue is ambiguous with multiple context.

For global install issue, please refer to #42 (comment)

For other problems, please create new issues with reproductions. Thanks.

from devtools.

harlan-zw avatar harlan-zw commented on May 9, 2024

Hey @huyanyou

Can you confirm your node version? I think you need to be using Node 16.x

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024

@harlan-zw
node: v14.20.1

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024

@harlan-zw
I have used the node version to 18 now, but after I installed devtools through the first method, I deleted node_modules and pnpm.lock.yml After deleting and reinstalling, the dependencies of nuxt cannot be installed

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024

@harlan-zw
Cannot find module '/opt/homebrew/lib/node_modules/@nuxt/devtools/dist/module.mjs'

from devtools.

harlan-zw avatar harlan-zw commented on May 9, 2024

Try run npx nuxi@latest devtools enable again or add it as a local dependency.

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024

Cannot find module '/home/zks/.local/share/fnm/node-versions/v14.20.1/installation/lib/node_modules/@nuxt/devtools/dist/module.mjs'

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024

@harlan-zw
After installing devtools globally, all nuxt3 project installation dependencies will appear this way, and the template cannot be found

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024

I use fnm to manage the node environment, but I didn’t find the 18 version in this directory. I was looking for 14. There are devtools under the 18 version

from devtools.

harlan-zw avatar harlan-zw commented on May 9, 2024

Might be related to #42

You can remove from .nuxtrc in homedir as last resort.

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024

There is no nuxtrc in my directory

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024

I don't know how to let him look for templates in the directory of version 18

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024

@harlan-zw
There are devtools in the directory of the node18 version

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024

It should be that "/home/zks/.local/share/fnm/node-versions/v14.20.1/installation/lib/node_modules/@nuxt/devtools/dist/module.mjs" cannot be found by executing the "nuxt prepare" command development tools

from devtools.

TomatoSoup0126 avatar TomatoSoup0126 commented on May 9, 2024

Same here.
It will happen on all nuxt project and no matter what node version.

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024

how to resolve?

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024

@TomatoSoup0126
I also recreated the nuxt3 project, all of which cannot use nuxt commands, and they all have the same error
I have re-used npm and yarn, same error

from devtools.

quiet-dog avatar quiet-dog commented on May 9, 2024

@EternalC0der

I copied devtools from other node versions to version 14, but other errors occurred when the project started. I also tried to load devtools globally but it didn't work

from devtools.

TomatoSoup0126 avatar TomatoSoup0126 commented on May 9, 2024

.nuxtrc is located at C:\users\%username%\ in windows (not sure about Unix) If you want to completely remove nuxt devtools, try this

  1. Run npm remove -g @nuxt/devtools`
  2. Delete C:\users\%username%\.nuxtrc

@EternalC0der
It's worked by follow the step!
By the way, .nuxtrc file on macOS is also located at users\%username%\.

from devtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.