Skip to content

Instantly share code, notes, and snippets.

@paveltretyakovru
Created April 8, 2020 21:34
Show Gist options
  • Save paveltretyakovru/c237221dee3b97ad7e9a0d7796da5289 to your computer and use it in GitHub Desktop.
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
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