Files
dots-workstation/npm/npm-error-permission.txt
2021-11-15 19:11:42 +01:00

22 lines
363 B
Plaintext

Checkout this: https://stackoverflow.com/a/55274930
$ mkdir ~/.npm-global
Configure npm to use the new directory path:
$ npm config set prefix '~/.npm-global'
In your preferred text editor, open or create a
~/.profile
file and add this line:
export PATH=~/.npm-global/bin:$PATH
On the command line, update your system variables:
source ~/.profile