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 Posts:
- Error “Cannot find module ‘npmlog'” after “npm update -g”
- How to properly upgrade node using nvm
- How can I update NodeJS and NPM to the next versions?
- How can I update npm itself?
- How to install a previous exact version of a NPM package?
- How to solve npm error “npm ERR! code ELIFECYCLE”
- How to solve npm error “npm ERR! code ELIFECYCLE”
- npm check and update package if needed
- After command npm start “Missing script:start” error
- sudo: npm: command not found
- How to resolve Nodejs: Error: ENOENT: no such file or directory
- Please run `npm cache clean`
- What is the difference between npm install and npm run build?
- npm ERR cb() never called
- NPM clean modules
- ‘node’ is not recognized as an internal or an external command, operable program or batch file while using phonegap/cordova
- How can the default node version be set using NVM?
- NPM Start not starting local server
- What is the –save option for npm install?
- Node Version Manager install – nvm command not found
- nodemon not working: -bash: nodemon: command not found
- npm install not working in windows
- nodemon not found in npm
- nodemon not found in npm
- ExpressJS – throw er Unhandled error event
- npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
- Why am I getting “Error socket hang up” response?
- How to write a .nvmrc file which automatically change node version
- What Are “npm run dev” and “npm run prod”
- Find the version of an installed npm package
- “npm config set registry https://registry.npmjs.org/” is not working in windows bat file
- How do I uninstall a package installed using npm link?
- Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’
- ExpressJS – throw er Unhandled error event
- What is the difference between –save and –save-dev?
- error: This is probably not a problem with npm. There is likely additional logging output above
- list all globally installed modules with one command in ubuntu
- npm – “Can’t find Python executable “python”, you can set the PYTHON env variable.”
- npm update does not do anything
- Cannot find module ‘@babel/core’
- How to install npm peer dependencies automatically?
- Do I commit the package-lock.json file created by npm 5?
- npm update broke npm
- How to Reinstall Broken npm
- Cannot npm install due to node-gyp: binding.gyp not found
- Downgrade npm to an older version
- `node-pre-gyp install –fallback-to-build` failed during MeanJS installation on OSX
- npm install resulting in ‘ENOENT: no such file or directory’
- When I run `npm install`, it returns with `ERR! code EINTEGRITY` (npm 5.3.0)
- E: Unable to locate package npm
- npm install errors with Error: ENOENT, chmod
- NPM self_signed_cert_in_chain
- npm WARN deprecated [email protected]: Use uuid module instead
- npm WARN package.json: No repository field
- npm “failed to parse json”
- Npm Error – Windows NT – How to resolve
- How do you uninstall all dependencies listed in package.json (NPM)?
- npm start giving error in node.js
- npm install with error: `gyp` failed with exit code: 1
- npm update check failed
- NPM warn message about deprecated package
- While doing npm install getting an error as “No such file or directory open”
- Webpack – webpack-dev-server: command not found
- npm install hangs
- npm init not working and getting stuck on version
- GYP ERR! build error. stack Error: ‘make’ failed with exit code 2
- Can pm2 run an ‘npm start’ script
- npm update to specific version (and shrinkwrap)
- I can´t install nodemon globally, “nodemon” not recognized
- What is the file node.exe for?
- Discord API error when trying to send one command at discord using JavaScript client
- NPM ELIFECYCLE error – using node server.js command
- Node.js – SyntaxError: Unexpected token import
- Angular – ng: command not found
- What does the ELIFECYCLE Node.js error mean?
- Node.js Port 3000 already in use but it actually isn’t?
- How to Create and Use Enum in Mongoose
- What does the “as” keyword do?
- In express how do I redirect a user to an external url?
- Passport and connect-flash: req.flash is not a function
- Node update a specific package
- Push items into mongo array via mongoose
- Error: Cannot find module ‘webpack’
- NodeJS w/Express Error: Cannot GET /
- Node.js + Nginx – What now?
- CentOS error – sudo: effective uid is not 0, is sudo installed setuid root?
- What could cause “connect ETIMEDOUT” error when the URL is working in browser?
- “invalid ELF header” when using the nodejs “ref” module on AWS Lambda
- Entrypoint undefined = index.html using HtmlWebpackPlugin
- node.js: cannot find module ‘request’
- TypeError: callback is not a function in nodejs
- Route.get() requires callback functions but got a “object Undefined”
- nodejs – first argument must be a string or Buffer – when using response.write with http.request
- How to update a array value in Mongoose
- In Mongoose, how do I sort by date? (node.js)
- How can I use an ES6 import in Node.js? [duplicate]
- How to stop Node.js server?
- unexpected strict mode reserved word — yield? Node v0.11, harmony, es6
- Nodejs – Redirect url
- ode.js vs. meteor.js what’s the difference?