⚠️ ARCHIVED WEBSITE, NO FURTHER UPDATES ⚠️
383 shaares
79 private links
79 private links
Create a local npm directory where the npm packages will be installed:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
Edit bashrc
or zshrc
and add:
export PATH=~/.npm-global/bin:$PATH
Restart the shell.
Test it:
npm i -g http-serve
http-serve