npm install时会需要nodejs的源码,所以可以先把源码下载到本地
源码地址:https://nodejs.org/en/
tar zxf node-v6.11.4.tar.gz -C ~/.node-gyp mv ~/.node-gyp/node-v6.11.4 ~/.node-gyp/6.11.4 printf "9 ">~/.node-gyp/6.11.4/installVersion