【问题标题】:Kendo Angular 2 npm Install Error in VSTS for @progressKendo Angular 2 npm 在@progress 的 VSTS 中安装错误
【发布时间】:2017-01-10 11:22:05
【问题描述】:

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

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

下面的构建步骤错误...

2017-01-10T11:07:21.9674570Z [命令]C:\Program Files\nodejs\npm.cmd 安装 2017-01-10T11:07:29.2981900Z npm ERR! Windows_NT 6.1.7601 2017-01-10T11:07:29.2991901Z npm 错误! argv "C:\程序 文件\nodejs\node.exe" "C:\Program 文件\nodejs\node_modules\npm\bin\npm-cli.js" "安装" 2017-01-10T11:07:29.2991901Z npm 错误!节点 v6.9.4 2017-01-10T11:07:29.2991901Z npm 错误! npm v3.10.10 2017-01-10T11:07:29.2991901Z npm 错误!代码 E404 2017-01-10T11:07:29.3011903Z 2017-01-10T11:07:29.3031905Z npm 错误! 404 未找到:@progress/kendo-data-query 2017-01-10T11:07:29.3041906Z npm 错误! 404 2017-01-10T11:07:29.3051907Z npm 错误! 404 '@progress/kendo-data-query' 不在 npm 注册表中。 2017-01-10T11:07:29.3081910Z npm 错误! 404你应该给作者bug 发布它(或自己使用名称!) 2017-01-10T11:07:29.3081910Z npm 错误! 404 它被指定为“angular2-quickstart”的依赖项 2017-01-10T11:07:29.3101912Z npm 错误! 404 2017-01-10T11:07:29.3101912Z npm 错误! 404注意,你也可以 从 2017-01-10T11:07:29.3101912Z npm ERR 安装! 404 压缩包, 文件夹、http url 或 git url。

【问题讨论】:

    标签: angular npm-install kendo-ui-angular2 azure-pipelines-build-task


    【解决方案1】:

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

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

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

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

    【讨论】:

    • 感谢 Tsvetomir 更改服务帐户以匹配运行登录命令的帐户!
    • 嗨!你能告诉我如何为我的订阅获取 [secret token here] 价值吗?谢谢!
    • 执行npm login --registry=https://registry.npm.telerik.com/ --scope=@progress后,令牌将在您的 ~/.npmrc 文件中可用
    猜你喜欢
    • 2017-08-01
    • 2016-08-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-24
    • 1970-01-01
    相关资源
    最近更新 更多