Open liudonghua123 opened 3 years ago
It seems have some related issue with v3 of https://www.nuget.org
, see https://github.com/OneGet/NuGetProvider/issues/28.
Finally, I can install like this, I do not know whether it is installed success.
PS C:\Users\Liu.D.H> Install-Package squirrel.windows -verbose -Source https://www.nuget.org/api/v2 -Scope CurrentUser -SkipDependencies -ErrorAction SilentlyContinue VERBOSE: Using the provider 'NuGet' for searching packages.
VERBOSE: Searching repository 'https://www.nuget.org/api/v2/FindPackagesById()?id='squirrel.windows'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'squirrel.windows'.
VERBOSE: Performing the operation "Install Package" on target "Package 'squirrel.windows' version '2.0.1' from
'https://www.nuget.org/api/v2'.".
The package(s) come(s) from a package source that is not marked as trusted.
Are you sure you want to install software from 'https://www.nuget.org/api/v2'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
VERBOSE: Searching repository 'https://www.nuget.org/api/v2/FindPackagesById()?id='squirrel.windows'' for ''.
VERBOSE: InstallPackage' - name='squirrel.windows',
version='2.0.1',destination='C:\Users\Liu.D.H\AppData\Local\PackageManagement\NuGet\Packages'
VERBOSE: DownloadPackage' - name='squirrel.windows',
version='2.0.1',destination='C:\Users\Liu.D.H\AppData\Local\PackageManagement\NuGet\Packages\squirrel.windows.2.0.1\squ
irrel.windows.2.0.1.nupkg', uri='https://www.nuget.org/api/v2/package/squirrel.windows/2.0.1'
VERBOSE: Downloading 'https://www.nuget.org/api/v2/package/squirrel.windows/2.0.1'.
VERBOSE: Completed downloading 'https://www.nuget.org/api/v2/package/squirrel.windows/2.0.1'.
VERBOSE: Completed downloading 'squirrel.windows'.
VERBOSE: Hash for package 'squirrel.windows' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='squirrel.windows',
version='2.0.1',destination='C:\Users\Liu.D.H\AppData\Local\PackageManagement\NuGet\Packages'
Name Version Source Summary
---- ------- ------ -------
squirrel.windows 2.0.1 https://www.nuget.org/api/v2 An installation and update framewor...
PS C:\Users\Liu.D.H>
It seems Squirrel.exe
is installed in C:\Users\Liu.D.H\AppData\Local\PackageManagement\NuGet\Packages\squirrel.windows.2.0.1\tools
, but the path is not append in PATH
env.
Squirrel version(s) 2.0.1
Description I do not have visual studio installed, so I want to install
squirrel.windows
using powershell, it's not easy, and finally I gotDependency loop detected for package 'squirrel.windows'
error.The log of the command are below.
Expected behavior Installation success.
Actual behavior Installation failed.
Additional information
If I use powershell 7