Kendo Angular 2 npm 在@progress 的 VSTS 中安装错误

Kendo Angular 2 npm Install Error in VSTS for @progress

我们的项目目前托管在 Visual Studio Team Services 上,并使用构建代理在本地构建。我们安装 npm 包的构建步骤当前失败。所有常规 npm 包都被正确加载和安装它只是 @progress 范围内的 Kendo 私有存储库包。我在带有构建代理的服务器上有 运行 下面的命令,我可以列出打包的版本,但它对构建步骤没有影响。

npm login --registry=https://registry.npm.telerik.com/ --scope=@progress

构建步骤错误如下...

2017-01-10T11:07:21.9674570Z [command]C:\Program Files\nodejs\npm.cmd install 2017-01-10T11:07:29.2981900Z npm ERR! Windows_NT 6.1.7601 2017-01-10T11:07:29.2991901Z npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" 2017-01-10T11:07:29.2991901Z npm ERR! node v6.9.4 2017-01-10T11:07:29.2991901Z npm ERR! npm v3.10.10 2017-01-10T11:07:29.2991901Z npm ERR! code E404 2017-01-10T11:07:29.3011903Z 2017-01-10T11:07:29.3031905Z npm ERR! 404 Not found : @progress/kendo-data-query 2017-01-10T11:07:29.3041906Z npm ERR! 404 2017-01-10T11:07:29.3051907Z npm ERR! 404 '@progress/kendo-data-query' is not in the npm registry. 2017-01-10T11:07:29.3081910Z npm ERR! 404 You should bug the author to publish it (or use the name yourself!) 2017-01-10T11:07:29.3081910Z npm ERR! 404 It was specified as a dependency of 'angular2-quickstart' 2017-01-10T11:07:29.3101912Z npm ERR! 404 2017-01-10T11:07:29.3101912Z npm ERR! 404 Note that you can also install from a 2017-01-10T11:07:29.3101912Z npm ERR! 404 tarball, folder, http url, or git url.

确保您已使用运行构建的同一用户执行了登录命令。

您还可以包含每个项目的 .npmrc 文件,请参阅 VSTS documentation

.npmrc 文件应至少包含以下行:

@progress:registry=https://registry.npm.telerik.com/
//registry.npm.telerik.com/:_authToken=[secret token here]