Delete and Reset the prefix
$ npm config delete prefix
$ npm config set prefix $NVM_DIR/versions/node/v6.11.1
Note: Change the version number with the one indicated in the error message.
nvm is not compatible with the npm config “prefix” option: currently
set to “/usr/local” Run “npm config delete prefix” or “nvm use
–delete-prefix v6.11.1 –silent” to unset it.
Credits to @gabfiocchi on Github – “You need to overwrite nvm prefix”
Related Contents:
- nvm keeps “forgetting” node in new terminal session
- How to properly upgrade node using nvm
- What is the recommended way to install Node.js, nvm and npm on MacOS X?
- Difference between NPM and NVM
- Why isn’t Node Version Manager (NVM) recognized on Windows?
- wasm code commit Allocation failed – process out of memory
- Updating npm when using nvm-windows
- Cannot find module ‘agentkeepalive’ when updating NPM to 7.20.3
- NPM not found when using NVM
- Can’t uninstall global npm packages after installing nvm
- Uninstalling the currently active version of node.js with nvm
- What is the –save option for npm install?
- How to update each dependency in package.json to the latest version?
- Why does “npm install” rewrite package-lock.json?
- Is there a way to get version from package.json in nodejs code?
- How do you reinstall an app’s dependencies using npm?
- How to install a private NPM module without my own registry?
- How to Delete node_modules – Deep Nested Folder in Windows
- What does -save-dev mean in npm install grunt –save-dev
- The engine “node” is incompatible with this module
- How do I install a module globally using npm?
- How to set custom location for local installation of npm package?
- How can I publish an npm package with distribution files?
- Npm install failed with “cannot run in wd”
- Visual Studio Code to use node version specified by NVM
- How to find reverse dependencies on npm package?
- Jest gives `Cannot find module` when importing components with absolute paths
- How to resolve Nodejs: Error: ENOENT: no such file or directory
- Browserify – How to call function bundled in a file generated through browserify in browser
- Install NPM into home directory with distribution nodejs package (Ubuntu)
- ‘npm install’ extremely slow on Windows
- How to add custom certificate authority (CA) to nodejs
- How can I add a .npmrc file?
- The following packages have unmet dependencies: nodejs : Conflicts: npm
- Automatically remove dependencies from package.json when using npm uninstall
- What is the difference between res.send and res.write in express?
- node gyp error TRACKER : error TRK0005: Failed to locate: “CL.exe”. The system cannot find the file specified
- Error: EACCES: permission denied when trying to install ESLint using npm
- NVM & Node.js – Recommended install for all users
- NPM: Why is this package installed?
- How to test an `npm publish` result, without actually publishing to NPM?
- How can I update npm itself?
- brew install npm “npm: command not found”
- Install a locally developed npm package globally
- How does NPM handle version conflicts?
- Importing Sass through npm
- Go to the TypeScript source file instead of the type definition file in VS Code
- Getting Error 402 while publishing package using npm
- What is the difference between yarn.lock and npm’s package-lock?
- Why is npm running prepare script after npm install, and how can I stop it?