Article From:

Ali Yun, centos7.3
yum -y install gcc make gcc-c++ openssl-devel wget
Then the downloading and decompression will not be said, and then
ln -s /root/node-v8.4.0-linux-x64/bin/node /usr/local/bin/node
ln: failed to create symbolic link ‘/usr/local/bin/node’: File exists
make && make install
make: *** No targets specified and no makefile found. Stop.

Just playing this, I don’t know how to install this, if I use this method.

#node(Annotation)Export NODE_HOME=/usr/local/src/node-v8.4.0-linux-x64Export PATH=$PATH:$NODE_HOME/binExport NODE_PATH=$NODE_HOME/lib/node_modules

source /etc/profile
node -v
npmThe loaded package is not available, the cnpm prompt can not find the command

Update, or using the above environment plus method, the original directory address is written wrongly.
Thank you for your help, and then upgrade Py.
The source code compile time is too long,.Sh script can try, if it is safe.

Answer 0:

Instead of downloading the official compression pack directly, unpack it to a directory, for example/home/xxx/nodejs,Then add the environment variablevi /etc/profile,Add at the bottomPATH=$PATH:/home/xxx/nodejs/bin,Thensource profileOr what is it going to do? I did it yesterday (deepin system)

Answer 1:

Try this…
I also tried many tutorials, and finally installed the latest nodejs and npm..

Answer 2:

This can be: P=70
Nodejs Install &amp automatically; configure script centos6.8 through

Answer 3:

Download the compiled file pack directly with WGet, and add it to the environment variable. Do not download the source code compile and install, there will be problems.

Answer 4:

Looking at me step by step, I just installed nodejs on CentOS two days ago.

Downloading unzipWGet -d node-v8.4.0-Linux-x64.tar.xzTar xvf node-v8.4.0-linux-x64.tarMV node-v8.4.0-linux-x64 nodejsEstablishing soft connectionLn -s /usr/Local/src/nodejs/bin/npm /usr/local/bin/npmLn -s /usr/local/src/nodejs/bin/node /usr/local/bin/nodeNode -vNPM -vInstall cnpmNPM install -g cnpm --registry= config seT registry -s /usr/local/src/nodejs/bin/cnpm /usr/local/bin/cnpmCnpm -v

Answer 5:

Why don’t you look at the official documents? Https://…

Answer 6:

1、Install the EPEL source

rpm -Uvh…

2、yumInstall node.js

yum install nodejs npm -y

Answer 7:

node version manager

Leave a Reply

Your email address will not be published. Required fields are marked *