Devtool referring to other node version
Nuxt 3.
steps above, I am trying to install howerver the devtools is always referring to global node js.
Any idea on how to fix it? TIA
Any idea on how to fix it? TIA
2 Replies
Hi @Ashley Solomon. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
The issue you're experiencing seems to be related to Nuxt DevTools referencing a global Node.js installation instead of your project's local Node.js version. This can happen due to how Nuxt DevTools is installed and configured. Let's try to resolve this issue step by step:
1. First, make sure you're using the latest version of Nuxt. You can update it by modifying your
package.json
file or running:
2. Instead of relying on the global installation of Nuxt DevTools, you should install it locally in your project. Add it to your project's dependencies by running:
3. After installing it locally, update your nuxt.config.ts
file to enable DevTools:
This approach is recommended in the Nuxt DevTools documentation (https://devtools.nuxt.com/guide/getting-started#auto-install).
4. If you're still experiencing issues, you can try clearing the Nuxt cache:
5. If the problem persists, you might need to check your .nuxtrc
file in your home directory. As mentioned in a GitHub issue comment (https://github.com/nuxt/nuxt/issues/19682), sometimes this file can cause conflicts. If it exists, check its contents and remove any lines referencing specific Node.js versions or paths.
6. As a last resort, you can try using the edge release channel of Nuxt DevTools. Update your package.json
as follows:
This approach is described in the Nuxt DevTools documentation (https://devtools.nuxt.com/guide/getting-started#edge-release-channel).
After making these changes, remove the node_modules
folder and the lock file, then run bun install
again.
If you're still encountering issues after trying these steps, it might be worth checking if there are any conflicts with other global Node.js installations or NVM configurations on your system.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@844095436587270165> Kapa.ai is still learning and improving, please let me know how I did by reacting below.