npm错误 - 笔记搬迁5

1、npm install

[vagrant@centos6 ~]$ npm i -g npm
npm ERR! code EINTEGRITY
npm ERR! sha512-ZJsOWVJ25E2C5Qedf4w9ePIv5hrPCdDIsHhq89tRxSJCqyIfDAMh0KoU9xeTu7yHT9ZrxPF7mopq1TCWxtMfkw== integrity checksum failed when using sha512: wanted sha512-ZJsOWVJ25E2C5Qedf4w9ePIv5hrPCdDIsHhq89tRxSJCqyIfDAMh0KoU9xeTu7yHT9ZrxPF7mopq1TCWxtMfkw== but got sha512-GKBrPUNL4HNRI9V4E08l1XglSQo0U8PljSw59tyTzRygSoT49y5rlY3CDsXskJZC9G/amEYyPbo/uXvJjYwDjQ==. (32242 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vagrant/.npm/_logs/2017-08-11T05_18_53_057Z-debug.log

解决

[vagrant@centos6 ~]$ npm cache clean --force && npm cache verify
[vagrant@centos6 ~]$ npm install

2、虚拟机中(windows创建unix)BUG

[root@centos6 datang]# npm install
npm WARN deprecated express@2.5.11: express 2.x series is deprecated
npm WARN deprecated connect@1.9.2: connect 1.x series is deprecated
npm WARN ETXTBSY: text file is busy, rmdir '/vagrant/datang/node_modules/fsevents/build/Release/.deps/Users/eshanker/Code'
npm ERR! path ../acorn/bin/acorn
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink
npm ERR! EPROTO: protocol error, symlink '../acorn/bin/acorn' -> '/vagrant/datang/node_modules/.bin/acorn'

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-08-11T05_51_28_826Z-debug.log

解决:由于host os不支持linux的symbol link,所以必须使用:npm install –no-bin-links命令

[root@centos6 datang]# npm install --no-bin-links
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值