npm'connect'版本

时间:2012-03-02 21:33:10

标签: node.js connect npm

我无法使用npm安装“connect”软件包。 npm说最新的有效版本是1.0.1,但在npm服务器上它是2.0.1

npm版本为1.1.4,节点为0.7.6pre

npm install connect@'>=2.0.1'
npm http GET https://registry.npmjs.org/connect
npm http 304 https://registry.npmjs.org/connect

npm ERR! Error: No compatible version found: connect@'>=2.0.1'
npm ERR! Valid install targets:
npm ERR!     ["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.1.0","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7","0.3.0","0.4.0","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.5.6","0.5.7","0.5.8","0.5.9","0.5.10","1.0.0","1.0.1"]
你认为我应该使用node v0.6.12吗?

2 个答案:

答案 0 :(得分:2)

您必须降级到0.7.0以下才能使用最新版本的连接。从connect 1.0.2开始,它们为程序包设置了最大节点版本。请参阅http://search.npmjs.org/#/connect

答案 1 :(得分:2)

我在Windows的节点版本0.6.12中检查了安装连接模块,命令为:

npm install connect@2.0.3

它已成功安装!