centos7下安裝npm,其實只要有安裝nodejs,一般就都會自帶上npm
准備命令:
yum -y install gcc make gcc-c++ openssl-devel
下載源碼及解壓:
curl -O chttp://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz
tar -zvxf node-v0.10.26.tar.gz
編譯及安裝:
make && make install
驗證是否安裝配置成功:
node -v
http://www.bkjia.com/Linuxjc/1156098.html TechArticle