npm运行还原失败

sq1bmfud  于 2022-12-13  发布在  其他
关注(0)|答案(1)|浏览(143)

I was running npm run restore after init.cmd in my project.
npm is looking for contents under incorrect folders.
I got the following error. Would appreciate some help.
Unable to find version '8.305.0.5' of package 'Microsoft.Portal.Tools'. C:\Users....nuget\packages: Package 'Microsoft.Portal.Tools.8.305.0.5' is not found on source 'C:\Users....nuget\packages'. C:\Program Files (x86)\Microsoft SDKs\NuGetPackages: Package 'Microsoft.Portal.Tools.8.305.0.5' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages'. https://api.nuget.org/v3/index.json : Package 'Microsoft.Portal.Tools.8.305.0.5' is not found on source 'https://api.nuget.org/v3/index.json'.
Unable to find version '5.1.0.19' of package 'Microsoft.Azure.Gallery.AzureGalleryUtility'. C:\Users....nuget\packages: Package 'Microsoft.Azure.Gallery.AzureGalleryUtility.5.1.0.19' is not found on source 'C:\Users....nuget\packages'. C:\Program Files (x86)\Microsoft SDKs\NuGetPackages: Package 'Microsoft.Azure.Gallery.AzureGalleryUtility.5.1.0.19' is not found C:\Program Files (x86)\Microsoft SDKs\NuGetPackages: Package 'Microsoft.Azure.Gallery.Common.5.1.0.19' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages'. https://api.nuget.org/v3/index.json : Package 'Microsoft.Azure.Gallery.Common.5.1.0.19' is not found on source 'https://api.nuget.org/v3/index.json'.

hs1ihplo

hs1ihplo1#

原来我们在nuget.config文件中缺少一些

相关问题