When installing packages using npm install --global
, you need to have sudo
rights.
To avoid this you can move this directory inside your home directory and avoid the use of sudo
while installing packages.
1 | # Make sure the directory exists |
When installing packages using npm install --global
, you need to have sudo
rights.
To avoid this you can move this directory inside your home directory and avoid the use of sudo
while installing packages.
1 | # Make sure the directory exists |