This content originally appeared on DEV Community and was authored by Danyson
Step 1 :
Note : NodeJS v14 stable
sudo snap install node --classic
Step 2 :
Configure npm to use the ~/.npm-global
directory for global module:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile
source ~/.profile
Step 3 :
Update npm :
sudo npm install npm --global
This content originally appeared on DEV Community and was authored by Danyson
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.
APA
MLA
Danyson | Sciencx (2021-08-05T17:11:54+00:00) Set up NodeJs in global path in Ubuntu with simple steps. Retrieved from https://www.scien.cx/2021/08/05/set-up-nodejs-in-global-path-in-ubuntu-with-simple-steps/
" » Set up NodeJs in global path in Ubuntu with simple steps." Danyson | Sciencx - Thursday August 5, 2021, https://www.scien.cx/2021/08/05/set-up-nodejs-in-global-path-in-ubuntu-with-simple-steps/
HARVARDDanyson | Sciencx Thursday August 5, 2021 » Set up NodeJs in global path in Ubuntu with simple steps., viewed ,<https://www.scien.cx/2021/08/05/set-up-nodejs-in-global-path-in-ubuntu-with-simple-steps/>
VANCOUVERDanyson | Sciencx - » Set up NodeJs in global path in Ubuntu with simple steps. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/05/set-up-nodejs-in-global-path-in-ubuntu-with-simple-steps/
CHICAGO" » Set up NodeJs in global path in Ubuntu with simple steps." Danyson | Sciencx - Accessed . https://www.scien.cx/2021/08/05/set-up-nodejs-in-global-path-in-ubuntu-with-simple-steps/
IEEE" » Set up NodeJs in global path in Ubuntu with simple steps." Danyson | Sciencx [Online]. Available: https://www.scien.cx/2021/08/05/set-up-nodejs-in-global-path-in-ubuntu-with-simple-steps/. [Accessed: ]
rf:citation » Set up NodeJs in global path in Ubuntu with simple steps | Danyson | Sciencx | https://www.scien.cx/2021/08/05/set-up-nodejs-in-global-path-in-ubuntu-with-simple-steps/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.