You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Create npm global directory in home
mkdir -p ~/.npm-global
# Set npm to use this directory
npm config set prefix ~/.npm-global
# Add to PATH in .bashrcecho'export PATH=~/.npm-global/bin:$PATH'>>~/.bashrc
# Reload bashrcsource~/.bashrc
Verify Installation
java --version
node --version
npm --version
npm config get prefix # Should show /home/usrbinkat/.npm-global