How to add npm to path?
Tofloor
poster avatar
ad700
deepin
2017-08-17 18:41
Author
I installed nodejs with this command  .... curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs ....    it is installed but not in Path how to add npm to Path?
Reply Favorite View the author
All Replies
jingle
deepin
2017-08-17 19:03
#1
Reply View the author
Feng Yu
deepin
2017-08-17 19:50
#2
If you installed nodejs from nodesource, npm would be located at /usr/bin/npm. And this is the default PATH for Deepin.

Could you please show "echo $PATH" result?
Reply View the author
justforlxz
deepin developers team
2017-08-17 20:01
#3
I remember this script was unable to complete the installation of nodejs on deepin,
you need add  to /etc/apt/sources.list
  1. deb https://deb.nodesource.com/node_8.x sid main
Copy the Code


and update ,import nodejs key
Reply View the author
hendaoui
deepin
2017-08-19 11:12
#4
nodeJS installing tuto

https://www.youtube.com/watch?v=lCflym_c7jM&t=1s
Reply View the author