安装node

http://nodejs.cn/download/

克隆代码

.......

执行安装

npm install 

然后就报了一坨错误

npm install 报错Unexpected end of JSON input while parsing near...

清理一下缓存

sudo npm cache verify

听说不需要走淘宝镜像就可以解决此问题,还原npm

npm config set registry http://registry.cnpmjs.org

 

相关文章:

  • 2021-09-14
  • 2021-11-17
  • 2022-12-23
  • 2021-08-25
  • 2021-09-29
  • 2022-01-07
  • 2021-06-26
  • 2021-05-07
猜你喜欢
  • 2022-02-10
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2021-12-03
  • 2019-06-29
相关资源
相似解决方案