Skip to content

'Add-PathVariable' is not recognized #5

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

Open
Amadeus- opened this issue Jan 11, 2020 · 3 comments
Open

'Add-PathVariable' is not recognized #5

Amadeus- opened this issue Jan 11, 2020 · 3 comments

Comments

@Amadeus-
Copy link

I'm using Windows 10 and just installed Powershell 6.2.2. Using your profile, I get a lot of error messages that indicate that 'Add-PathVariable' is not recognized:

Add-PathVariable : The term 'Add-PathVariable' 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 C:\Users\A\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:7 char:1
+ Add-PathVariable "${env:ProgramFiles}\PowerShell\6-preview"
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Add-PathVariable:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

There are 18 of these errors; all indicating that Add-PathVariable isn't recognized.

@mikemaccana
Copy link
Owner

mikemaccana commented Jan 11, 2020 via email

@Amadeus-
Copy link
Author

I did not; however, installing that did seem to fix the issue. I didn't see that it was a requirement.

Thanks.

@mikemaccana
Copy link
Owner

mikemaccana commented Jan 11, 2020 via email

mikemaccana added a commit that referenced this issue Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@mikemaccana @Amadeus- and others