量角器安装失败

时间:2016-10-27 15:55:12

标签: node.js npm jasmine protractor

尝试使用节点v4.6.0安装最新版本的量角器(4.0.10)失败。

我收到此错误:

bower@1.7.9 C:\Users\mallain\AppData\Roaming\npm\node_modules\bower
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.6.0
npm ERR! npm  v2.15.9
npm ERR! code E404

npm ERR! 404 Not Found: @types/jasmine
npm ERR! 404
npm ERR! 404 '@types/jasmine' 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 'protractor'
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\mallain\workspace\angular-catalogue-module\npm-debug.log

2 个答案:

答案 0 :(得分:1)

尝试将节点和npm更新为最新版本。 @types是一个相当近的惯例。

答案 1 :(得分:-1)

这是我公司的注册问题。

将项目注册表更改为有效的注册表修复此问题! :)