centos7下用yum install 安装nodejs,默认装在哪个目录了?
View the directory where yum is installed and use the command
rpm -ql
find / -name nodejs
Give you a better installation method, haha (check the version number yourself https://npm.taobao.org/mirror...):
curl -O http://cdn.npm.taobao.org/dist/node/v6.9.1/node-v6.9.1-linux-x64.tar.gz && \ tar --strip-components 1 -xzvf node-v* -C /usr/local && \ node --version
View the directory where yum is installed and use the command
find / -name nodejs
Give you a better installation method, haha (check the version number yourself https://npm.taobao.org/mirror...):