Skip to content

Instantly share code, notes, and snippets.

@xyzkab
Last active April 6, 2018 09:55
Show Gist options
  • Save xyzkab/b40c2af5ffe403a3a54e28f032f1c1c9 to your computer and use it in GitHub Desktop.
Save xyzkab/b40c2af5ffe403a3a54e28f032f1c1c9 to your computer and use it in GitHub Desktop.
Install NPM module locally/regular-user

Install NPM module locally/regular-user

cat > .npmrc
prefix=~/.npm-global
echo 'export PATH=$PATH:~/.npm-global/bin'
source .profile
npm config get prefix # make sure it set to /home/youruser/.npm-global
npm install -g <package-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment