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\n">~/.node-gyp/6.11.4/installVersion

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-09-20
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2021-07-18
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案