add npm info permission error
This commit is contained in:
21
npm/npm-error-permission.txt
Normal file
21
npm/npm-error-permission.txt
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user