2014-01-10 65 views
0

每當我嘗試使用NPM運行下面的命令來安裝節點包:NPM運行所有安裝的時候,獲得了下載的軟件包

npm http 304 http://registry.npmjs.org/cryptiles 
npm http 200 http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.10.tgz 
npm http 200 http://registry.npmjs.org/domhandler/-/domhandler-2.2.0.tgz 
npm http 304 http://registry.npmjs.org/delayed-stream/0.0.5 
npm http 200 http://registry.npmjs.org/esprima 
npm http GET http://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz 
npm http 200 http://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz 
npm http 200 http://registry.npmjs.org/punycode 
npm http GET http://registry.npmjs.org/punycode/-/punycode-1.2.3.tgz 
npm http GET http://registry.npmjs.org/core-util-is 
npm http GET http://registry.npmjs.org/debuglog/0.0.2 
npm http 200 http://registry.npmjs.org/punycode/-/punycode-1.2.3.tgz 
npm http 200 http://registry.npmjs.org/core-util-is 
npm http GET http://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz 
npm http 200 http://registry.npmjs.org/debuglog/0.0.2 
npm http GET http://registry.npmjs.org/debuglog/-/debuglog-0.0.2.tgz 
npm http 200 http://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz 
npm http 200 http://registry.npmjs.org/debuglog/-/debuglog-0.0.2.tgz 
npm http 200 http://registry.npmjs.org/argparse 
npm http GET http://registry.npmjs.org/argparse/-/argparse-0.1.15.tgz 
npm http 200 http://registry.npmjs.org/argparse/-/argparse-0.1.15.tgz 
npm http GET http://registry.npmjs.org/underscore 
npm http GET http://registry.npmjs.org/underscore.string 
npm http 304 http://registry.npmjs.org/underscore 
... 

我知道這些都爲軟件包的依賴關係,但例如,而cryptiles包現在已安裝,當我想安裝的軟件包依賴於cryptiles NPM再次運行此命令下一次:

npm http 304 http://registry.npmjs.org/cryptiles 

什麼建議嗎?

回答

0

npm按照這種設計方式工作。

因爲npm本地安裝包,而不是全局你可以結束與cryptiles軟件包的多個版本,因爲您的應用程序依賴於0.2.X和其他軟件包依賴於0.1.x的實例。

你可以閱讀的第一項(處理的同時同一事物的多個版本)的this blog post,由npm創建者書面爲了更好的理解。