我试图按照 这篇博客文章 进行操作,在我安装了适当的SDK和node之后。
运行命令dotnet new --install Microsoft.AspNetCore.SpaTemplates::*
时,我遇到了错误:
正在为源'https://ournugetserver/httpAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?id='Microsoft.AspNetCore.SpaTemplates''重试“FindPackagesByIdAsyncCore”。响应状态代码未指示成功:401 (未经授权)。
正在为源'https://tcypwv01/httpAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?id='Microsoft.AspNetCore.SpaTemplates''重试“FindPackagesByIdAsyncCore”。响应状态代码未指示成功:401 (未经授权)。
正在为源'https://ournugetserver/httpAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?id='Microsoft.NETCore.App''重试“FindPackagesByIdAsyncCore”。响应状态代码未指示成功:401 (未经授权)。C:\Program Files\dotnet\sdk\1.0.4\NuGet.targets(97,5): 错误:无法从远程源'https://ournugetserver/httpAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?id='Microsoft.NETCore.App''检索有关'Microsoft.NETCore.App'的信息。[C:\Users\xxxxx.templateengine\dotnetcli\v1.0.4\scratch\restore.csproj] C:\Program Files\dotnet\sdk\1.0.4\NuGet.targets(97,5): 错误:
响应状态代码未指示成功:401 (未经授权)。[C:\Users\xxxxx.templateengine\dotnetcli\v1.0.4\scratch\restore.csproj]
似乎与我们内部的NuGet服务器有关。我正在使用VS 2017。是否有可能强制它忽略我们的NuGet服务器或强制它使用正确的服务器?