1

你们中有人知道为什么我会收到以下错误消息吗?

我正在尝试使用最新版本的 Apache Tools for Cordova (7) 构建一个空白项目。之前一切正常(直到版本 6)。

看起来这与 Visual Studio 由于 nuget 的一些故障而无法安装“vs-tac”模块有关,尽管我觉得这很奇怪。我还尝试重新安装它,卸载并安装以前的版本,但对我没有任何帮助,出于同样的原因失败。

谢谢!

1>------ Build started: Project: BlankCordovaApp2, Configuration: Debug Android ------
1>  Your environment has been set up for using Node.js 0.12.2 (x64) and npm.
1>  ------ Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\packages\vs-tac
1>  ------ Name from source package.json: vs-tac
1>  ------ Version from source package.json: 1.0.37
1>  ------ Package not currently installed globally.
1>  ------ Installing globally from source package. This could take a few minutes...
1>  Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.
1>  npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
1>  > edge-cs@0.3.0 install C:\Users\grighetti\AppData\Roaming\npm\node_modules\vs-tac\node_modules\edge\node_modules\edge-cs
1>  > node tools/install.js
1>  Microsoft .NET Development Utility CLR-x86-1.0.0-beta6-12256
1>  Restoring packages for C:\Users\grighetti\AppData\Roaming\npm\node_modules\vs-tac\node_modules\edge\node_modules\edge-cs\lib\edge-cs-coreclr\project.json
1>    CACHE https://www.nuget.org/api/v2/
1>    GET https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.CodeAnalysis.CSharp'
1>RUNMDAINSTALL : warning : FindPackagesById: Microsoft.CodeAnalysis.CSharp
1>    Response status code does not indicate success: 401 (Unauthorized).
1>    GET 
1>    GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Text.RegularExpressions'
1>RUNMDAINSTALL : warning : FindPackagesById: Microsoft.CodeAnalysis.CSharp
1>    Response status code does not indicate success: 401 (Unauthorized).

其他类似的错误信息,然后

1>  ----------
1>  System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).
1>     at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
1>     at Microsoft.Framework.PackageManager.Restore.NuGet.HttpSource.<GetAsync>d__8.MoveNext()

1>  ----------
1>  Restore failed
1>  Response status code does not indicate success: 401 (Unauthorized).
1>  NuGet Config files used:
1>      C:\Users\grighetti\AppData\Roaming\NuGet\NuGet.Config
1>  Feeds used:
1>      https://www.nuget.org/api/v2/
4

0 回答 0