Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
How to add npm to path?
Community Discussion
689
views ·
4
replies ·
To
floor
Go
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
Like 0
Favorite
View the author
All Replies
jingle
deepin
2017-08-17 19:03
#1
https://stackoverflow.com/questi ... to-the-path/6440727
Reply
Like 0
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
Like 0
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
deb https://deb.nodesource.com/node_8.x sid main
Copy the Code
and update ,import nodejs key
Reply
Like 0
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
Like 0
View the author
Please
sign
in first
New Thread
Popular Events
More
sudo apt-get install -y nodejs .... it is installed but not in Path how to add npm to Path?