由于错误无法安装gulp和其他插件,但快递,socket.io已成功安装
npm ERR! Error: No compatible version found: archy@'^0.0.2' npm ERR! Valid install targets: npm ERR! ["0.0.0","0.0.1","0.0.2","1.0.0"] npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:685:10) npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:607:10 npm ERR! at saved (/usr/local/lib/node_modules/npm/node_modules/npm-registry- client/lib/get.js:138:7) npm ERR! at Object.oncomplete (fs.js:107:15) npm ERR! If you need help, you may report this log at: npm ERR! npm ERR! or email it to: npm ERR! npm ERR! System Linux 2.6.32-042stab090.5 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "gulp" "-g" npm ERR! cwd / npm ERR! node -v v0.10.4 npm ERR! npm -v 1.2.18
答案 0 :(得分:0)
问题是您使用的npm版本在包版本中不支持semver的插入符号(^
)。升级到node.js的最新稳定版本(撰写本文时为v0.10.32),问题应该修复。