Answer the question
In order to leave comments, you need to log in
[[+content_image]]
Setting up a CentOS server. Error installing node+npm?
Installed node js on server. But after installing it, npm doesn't work. What the console outputs (I use the shell client in ispmanager):
[[email protected] ~]# node -v
v6.12.3
[[email protected] ~]# npm -v
-bash: npm: command not found
[[email protected] ~]# which node
/bin/node
[[email protected] ~]# which npm
/usr/bin/which: no npm in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[[email protected] ~]#
Answer the question
In order to leave comments, you need to log in
you need to find where npm is installed and register it in PATH
In general, I advise you to install the latest LTS version.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question