我在服务器上面执行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做替换,才解决问题。我想问一下,这个问题是什么原因导致的,该怎么解决?
添加回答
举报
0/150
提交
取消