search

Home  >  Q&A  >  body text

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

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

巴扎黑巴扎黑2876 days ago694

reply all(3)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 16:12:29

    View the directory where yum is installed and use the command

    rpm -ql 

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 16:12:29

    find / -name nodejs

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 16:12:29

    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

    reply
    0
  • Cancelreply