npm install -g polymer-cli失败,说包不可用

时间:2016-08-18 06:18:20

标签: npm polymer polymer-cli

我正在尝试安装polymer-cli,我收到以下错误。 [从错误日志中复制]

npm install -g polymer-cli

我的节点和npm版本是......

  • node v4.4.3
  • npm v3.10.6

任何人都可以建议我如何解决问题,或者我必须提出任何日志? 在cmd我得到了这些......

C:\Users\kaustav.goswami>npm install -g polymer-cli
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\Programs\\nodejs\\node.exe" "C:\\Users\\kaustav.goswami\\AppD
ata\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "polymer-c
li"
npm ERR! node v4.4.3
npm ERR! npm  v3.10.6
npm ERR! code E404

npm ERR! 404 no such package available : @types/clone
npm ERR! 404
npm ERR! 404  '@types/clone' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

npm ERR! 404 It was specified as a dependency of 'dom5'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\kaustav.goswami\npm-debug.log

错误记录

2489 error Windows_NT 6.1.7601
2490 error argv "D:\\Programs\\nodejs\\node.exe" "C:\\Users\\kaustav.goswami\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "polymer-cli"
2491 error node v4.4.3
2492 error npm  v3.10.6
2493 error code E404
2494 error 404 no such package available : @types/clone
2495 error 404
2496 error 404 '@types/clone' is not in the npm registry.
2497 error 404 You should bug the author to publish it (or use the name yourself!)
2498 error 404 It was specified as a dependency of 'dom5'
2499 error 404 Note that you can also install from a
2500 error 404 tarball, folder, http url, or git url.
2501 verbose exit [ 1, true ]

1 个答案:

答案 0 :(得分:1)

我遇到了与npm v3.10.6相同的问题。这对我有用:

npm up npm -g 
npm install -g polymer-cli