nvm is not compatible with the npm config “prefix” option:

Delete and Reset the prefix 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 … Read more

Error “Cannot find module ‘npmlog'” after “npm update -g”

I have faced the same issue in my Windows 10 PC. After looking into solutions, since i couldn’t find the exact solution for the issue i was facing Cannot find module ‘npmlog’ I just uninstalled the node js and then, deleted both ‘npm’ and ‘npm-cache’ in “C:\Users\YourPCName\AppData\Roaming” Then, i downloaded the latest version of node from Node JS … Read more

How to write a .nvmrc file which automatically change node version

As @Aditya-M-P has already mentioned you can run the following command inside your projects root directory to generate the .nvmrc to set a desired NodeJS version for you project to work properly: It will generate something like this inside your .nvmrc file: Also using 10.16.2 without the v letter will work just fine. However, in the official documentation in the .nvmrc section it never mentions … Read more

Brew install nvm. nvm: command not found

There are two steps to installing nvm with brew. First use brew to install the application: brew install nvm Then take a look at the brew info “caveats” section, to see what else you have to do: brew info nvm You might see something like (this can change!): If you do not have a ~/.bash_profile … Read more

Node Version Manager install – nvm command not found

Check your .bash_profile, .zshrc, or .profile file. You most likely had a problem during the installation. You should have the following at the end of one of those files. The . $HOME/.nvm/nvm.sh is the same as source $HOME/.nvm/nvm.sh See: Sourcing a File You can also check to see if you have a .nvm folder. If you’re missing that folder then the installation failed to run … Read more