Created
April 8, 2020 21:34
-
-
Save paveltretyakovru/c237221dee3b97ad7e9a0d7796da5289 to your computer and use it in GitHub Desktop.
Script to fix "sudo npm install ..." - "npm is not comand" when node installed with using NVM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n=$(which node); \ | |
n=${n%/bin/node}; \ | |
chmod -R 755 $n/bin/*; \ | |
sudo cp -r $n/{bin,lib,share} /usr/local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment