簡版node.js能夠直接保存成shell腳本執行安裝node
#!/bin/bash yum -y install gcc.x86_64 automake autoconf libtool.x86_64 gcc-c++.x86_64 wget https://nodejs.org/dist/v8.9.4/node-v8.9.4.tar.gz tar -zxf node-v8.9.4.tar.gz cd node-v8.9.4 ./configure make make install
npm config set registry https://registry.npm.taobao.org
npm --registry https://registry.npm.taobao.org install express
npm config get registry