node.js - centos7下用yum install 安装nodejs,默认装在哪个目录了?
巴扎黑
巴扎黑 2017-04-17 16:10:29
0
3
639

centos7下用yum install 安装nodejs,默认装在哪个目录了?

巴扎黑
巴扎黑

reply all(3)
巴扎黑

View the directory where yum is installed and use the command

rpm -ql 
Peter_Zhu

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template