tkellogg / Jump-Location

Powershell `cd` that reads your mind
MIT License
467 stars 26 forks source link

Both psget and choco installations fail to work in different ways (Windows 7, Powershell V3) #69

Open uglycoyote opened 6 years ago

uglycoyote commented 6 years ago

I am running Windows7 but have Powershell version 3 so figured I could get this to work.

When installing via Install-Module, I get the following.

Windows PowerShell
Copyright (C) 2012 Microsoft Corporation. All rights reserved.

PS C:\Users\admin> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
3      0      -1     -1

PS C:\Users\admin> Install-Module Jump.Location
PS C:\Users\admin> j
j : The term 'Set-JumpLocation' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ j
+ ~
    + CategoryInfo          : ObjectNotFound: (Set-JumpLocation:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

so I tried installing via chocolatey

PS C:\Users\admin> C:\ProgramData\chocolatey\bin\choco install jump-location
Chocolatey v0.10.8
Installing the following packages:
jump-location
By installing you accept licenses for the packages.
Progress: Downloading Jump-Location 0.6.0... 100%

Jump-Location v0.6.0 - Possibly broken
jump-location package files install completed. Performing other installation steps.
The package Jump-Location wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[N]o/[P]rint): Y

Extracting C:\Users\admin\AppData\Local\Temp\chocolatey\Jump-Location\0.6.0\Jump-Location-0.6.0.zip to C:\ProgramData\chocolatey\lib\Jump-Location\tools...
C:\ProgramData\chocolatey\lib\Jump-Location\tools
ERROR: Cannot bind argument to parameter 'Path' because it is an empty string.
The install of jump-location was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\Jump-Location\tools\chocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - jump-location (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\Jump-Location\tools\chocolateyInstall.ps1'.
 See log for details.