DEV Community

Discussion on: Setup Ubuntu for Javascript coding.

Collapse
 
topheman profile image
Tophe

Please avoid using sudo to install npm and npm packages. Not only will you end up with permissions issues but you will put your computer at risk by doing so.

On your development machine, you should use a node package manager such as nvm (or others).

Sources / Explanations (from the npm docs) :

Collapse
 
danywalls profile image
Dany Paredes • Edited

Thanks! I added these steps to avoid use sudo! :D