Closed jwilm closed 9 years ago
Originally posted by @jishnu7 before the devkit2 repo merge
Asking users to change ownership of a system folder is a bad advice.
Instead ask to create npmrc, point npm global to a folder in user's home directory and add this location to PATH.
npmrc
PATH
prefix = /home/user_name/.npm-bin
PATH=$PATH:/home/user_name/.npm-bin
now npm install -g devkit will work without root permission.
npm install -g devkit
Updated the wiki with this as the first installation option
Originally posted by @jishnu7 before the devkit2 repo merge
Asking users to change ownership of a system folder is a bad advice.
Instead ask to create
npmrc
, point npm global to a folder in user's home directory and add this location toPATH
.~/.npmrc
prefix = /home/user_name/.npm-bin
.bashrc or .zshrc
PATH=$PATH:/home/user_name/.npm-bin
now
npm install -g devkit
will work without root permission.