尝试按照
this blog post安装正确的SDK和节点.
运行命令dotnet new –install Microsoft.AspNetCore.SpaTemplates :: *给我错误:
Restoring packages for
C:Usersxxxx.templateenginedotnetcliv1.0.4scratchrestore.csproj…
Retrying ‘FindPackagesByIdAsyncCore’ for source
‘07001’Microsoft.NETCore.App”.
Response status code does not indicate success: 401 (Unauthorized).
Retrying ‘FindPackagesByIdAsyncCore’ for source
‘07001’Microsoft.AspNetCore.SpaTemplates”.
Response status code does not indicate success: 401 (Unauthorized).
Retrying ‘FindPackagesByIdAsyncCore’ for source
‘07003’Microsoft.AspNetCore.SpaTemplates”.
Response status code does not indicate success: 401 (Unauthorized).
Retrying ‘FindPackagesByIdAsyncCore’ for source
‘07001’Microsoft.NETCore.App”.
Response status code does not indicate success: 401 (Unauthorized).
C:Program Filesdotnetsdk1.0.4NuGet.targets(97,5): error : Failed
to retrieve information about ‘Microsoft.NETCore.App’ from remote
source
‘07001’Microsoft.NETCore.App”.
[C:Usersxxxxx.templateenginedotnetcliv1.0.4scratchrestore.csproj]
C:Program Filesdotnetsdk1.0.4NuGet.targets(97,5): error :
Response status code does not indicate success: 401 (Unauthorized).
[C:Usersxxxxx.templateenginedotnetcliv1.0.4scratchrestore.csproj]
似乎与我们的内部nuget服务器有关.我正在使用VS 2017.想办法可能强迫它忽略我们的nuget服务器或强制它使用正确的服务器?