“npm install googleapis”会产生以下错误

时间:2014-07-29 01:55:37

标签: google-api-nodejs-client

" npm install googleapis"产生以下错误:

npm ERR! Error: No compatible version found: inherits@'^2.0.1'
npm ERR! Valid install targets:
npm ERR! ["1.0.0","2.0.0","2.0.1"]
npm ERR!     at installTargetsError (C:\Program Files\nodejs\node_modules\npm\lib\cache.js:553:10)
npm ERR!     at C:\Program Files\nodejs\node_modules\npm\lib\cache.js:477:15
npm ERR!     at saved (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:138:7)
npm ERR!     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:218:7
npm ERR!     at Object.oncomplete (fs.js:297:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

1 个答案:

答案 0 :(得分:1)

我遇到了同样的问题(OS X 10.9.4)。结果是问题是一个过时的节点/ npm安装,我从node.js主页上升到了最新版本。不确定node或npm是否是罪魁祸首,但升级两者都修复了你描述的问题。