-
-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Posh-git not loaded because no valid module file found #734
Comments
PowerShell's |
@rkeithhill how do I find out where posh-git is installed? |
Look under |
I forgot to mention, another option is to use the full path to posh-git.psd1 e.g. |
More specifically, we use
Which there's been some discussion about: #473. I'm going to go ahead and close this; please reopen if you're still not able to resolve this. |
Making the chocolatey package function to any degree at all (without manual intervention) is apparently a wontfix, so I've installed it with PowerShellGet. See: - dahlbyk/posh-git#734 - dahlbyk/posh-git#473
Making the chocolatey package function to any degree at all (without manual intervention) is apparently a wontfix, so I've installed it with PowerShellGet. See: - https://github DOT com/dahlbyk/posh-git/issues/734 - https://github DOT com/dahlbyk/posh-git/issues/473
I just ran into this issue as well. Maybe adding documentation to this command |
Actually, you should remove the |
When importing the module with @rkeithhill 's |
If there is a space in the path, I'd recommend quoting the whole path: Import-Module 'D:\Users\Name Surname\Documents\github\posh-git\src\posh-git.psd1' In fact, if you start typing that at the console and use tab-completion for the path, PowerShell will put quotes around the path for you. |
I'm having the same issue as @vedanth-subramaniam . Any updates on this? |
It looks like the module just isn't available. I'm guessing your
|
Thanks @dahlbyk for the info. I was able to solve this by referencing the full path. Thanks |
Hey how were you able to locate the full path of posh-git? |
That would depend on how you installed posh-git. |
I also experienced this issue, seems like extra install instructions should be added to the readme for Chocolatey installations. Steps to reproduce are:
|
System Details
Issue Description
I am experiencing a problem with trying to import posh-git. I already have posh-git installed, using Chocolatey. (I tried installing it again using Chocolatey; Chocolatey complained informing me that I already had it installed.) Then I tried issuing the Import-Module posh-git command to import posh-git, so I can use it. However, when I do I get this error:
This confuses me. Is it installed or not?
The text was updated successfully, but these errors were encountered: