为了账号安全,请及时绑定邮箱和手机立即绑定

npm安装依赖报错

npm安装依赖报错

萧十郎 2019-03-30 11:32:15
我在服务器上面执行npminstall--production,结果出现了一堆的不是我依赖的模块。整个过程很长。下面的只是一部分npmhttp304https://registry.npmjs.org/ansi-regexnpmhttpGEThttps://registry.npmjs.org/meownpmhttpGEThttps://registry.npmjs.org/get-stdinnpmhttp304https://registry.npmjs.org/find-indexnpmhttp304https://registry.npmjs.org/get-stdinnpmhttp304https://registry.npmjs.org/meownpmhttpGEThttps://registry.npmjs.org/lodash._isnativenpmhttpGEThttps://registry.npmjs.org/lodash.isobjectnpmhttpGEThttps://registry.npmjs.org/lodash._shimkeysnpmhttpGEThttps://registry.npmjs.org/lodash._escapehtmlcharnpmhttpGEThttps://registry.npmjs.org/lodash._reunescapedhtmlnpmhttpGEThttps://registry.npmjs.org/wrappynpmhttpGEThttps://registry.npmjs.org/lodash._objecttypesnpmhttpGEThttps://registry.npmjs.org/inheritsnpmhttpGEThttps://registry.npmjs.org/brace-expansionnpmhttpGEThttps://registry.npmjs.org/core-util-isnpmhttpGEThttps://registry.npmjs.org/isarray/0.0.1npmhttpGEThttps://registry.npmjs.org/concat-map/0.0.1npmhttpGEThttps://registry.npmjs.org/balanced-matchnpmhttpGEThttps://registry.npmjs.org/inheritsnpmhttpGEThttps://registry.npmjs.org/inflight然后经过很长时间之后,就报错了:(ratherthananarrayof`Cookie`s)tothecallback.Simplymapsthecookiearrayvia`.toString()`.\u000a\u000a#CookieStoreAPI\u000a\u000aThestoragemodelfornpmERR!atObject.parse(native)npmERR!atRegClient.(/usr/lib/node_modules/npm-registry-client/lib/request.js:238:23)npmERR!atRequest.self.callback(/usr/lib/node_modules/request/index.js:148:22)npmERR!atRequest.emit(events.js:98:17)npmERR!atRequest.(/usr/lib/node_modules/request/index.js:891:14)npmERR!atRequest.emit(events.js:117:20)npmERR!atIncomingMessage.(/usr/lib/node_modules/request/index.js:842:12)npmERR!atIncomingMessage.emit(events.js:117:20)npmERR!at_stream_readable.js:938:16npmERR!atprocess._tickCallback(node.js:419:13)npmERR!Ifyouneedhelp,youmayreportthislogat:npmERR!npmERR!oremailitto:npmERR!npmERR!SystemLinux2.6.32-279.el6.x86_64npmERR!command"node""/usr/bin/npm""install""--production"npmERR!cwd/home/lottery/fabu/web/svnnpmERR!node-vv0.10.30npmERR!npm-v1.3.6npmERR!typeunexpected_eosnpmERR!npmERR!Additionalloggingdetailscanbefoundin:npmERR!/home/lottery/fabu/web/svn/npm-debug.lognpmERR!notokcode0尝试了使用npmcacheclear清理缓存也不行,最后我们使用cnpm做替换,才解决问题。我想问一下,这个问题是什么原因导致的,该怎么解决?
查看完整描述

2 回答

?
守候你守候我

TA贡献1802条经验 获得超10个赞

我和你一样,用npm不行,用cnpm安装就行我的linux服务器是国外的,你找到原因了吗可以告诉我吗
                            
查看完整回答
反对 回复 2019-03-30
  • 2 回答
  • 0 关注
  • 626 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信