designerscas.blogg.se

Npm config set prefix usr local
Npm config set prefix usr local










npm config set prefix usr local

Problems against the standard nvm install method prior to reporting.

npm config set prefix usr local

Nvm via Homebrew is unsupported by them and you should check any Please note that upstream has asked us to make explicit managing I installed nvm using homebrew and after that I got this notification: Open a new terminal and this time it should not print any warning message.Ĭheck that nvm is working by executing nvm -version command.Īfter that, install/reinstall NodeJS using nvm install node & nvm alias default node. (Check that you have no other nvm related command in any ~/.bashrc or ~/.profile or ~/.bash_profile) I had the same problem and executing npm config delete prefix did not help me.Īfter installing nvm using brew, create ~/.nvm directory: $ mkdir ~/.nvmĪnd add following lines into ~/.bash_profile: export NVM_DIR=~/.nvm I guess that's an odd case were things went wrong and forced me to reinstall everything, doesn't look like most people go through this due to this issue. Which added nvm the lines I previously had removed in my. Then started a new shell (so that nvm isn't loaded in this new shell) and ran curl -o- | bash zshrc to remove the lines related to nvm, which in my case were export NVM_DIR="$HOME/.nvm" I followed by running $ rm -rf "$NVM_DIR" I uninstalled and reinstalled nvm entirely to fix it. It wasn't possible to change node's version anymore. $ npm config set prefix $NVM_DIR/versions/node/v6.11.1Īfter running the recommended commands my nvm didn't work anymore, running nvm use would display the proper node version being used, but running node -v would show another. I followed answer but it didn't work out well. Nvm is not compatible with the npm config "prefix" option: currently set to "/home/john" Run `npm config delete prefix` or `nvm use -delete-prefix v0.10.44` to unset it. Nvm is not compatible with the npm config "prefix" option: currently set to "/usr/local" Note that you will have to repeat the same procedure with every node version, the prefix is set back to (in my case) /usr/local after installation. When I tried npm config delete prefix or nvm use -delete-prefix before using npm -prefix="" set prefix "", I got only: I was able to set to prefix with the help of this post: Npm root -g: $NVM_DIR/v0.10.I was looking for a solution for the nvm prefix problem a found this question(before finding the solution).












Npm config set prefix usr local