Skip to content
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

Scoop installed but command doesn't work "scoop: The term 'scoop' is not recognized..." #46

Closed
nsde opened this issue Mar 5, 2023 · 8 comments · Fixed by #49
Closed

Comments

@nsde
Copy link

nsde commented Mar 5, 2023

Description

Possibly a duplicate of #45

Installation Logs

image

PowerShell Context
Name Value
PSVersion 7.3.0-rc.1
PSEdition Core
GitCommitId 7.3.0-rc.1
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
@nsde
Copy link
Author

nsde commented Mar 5, 2023

Also tried it with the "normal" PowerShell, and Command Prompt... No luck :/

@chawyehsu
Copy link
Member

Hello @nsde , what's the value of $env:PATH after the installation?

@nsde
Copy link
Author

nsde commented Mar 5, 2023

Hello @nsde , what's the value of $env:PATH after the installation?

image

@nsde
Copy link
Author

nsde commented Mar 5, 2023

image

@nsde
Copy link
Author

nsde commented Mar 5, 2023

There doesn't seem to be any scoop installation

@chawyehsu
Copy link
Member

chawyehsu commented Mar 5, 2023

That's weird, there should be shim dir path. I'm not sure if the well-known PATH length limit causes this since your PATH contains so many items. May I ask you to check if you can manually append scoop shim path, which should be C:\Users\<username>\scoop\shims generally to the PATH env var from the Environment Variables control panel?

@nsde
Copy link
Author

nsde commented Mar 5, 2023

Thanks! Now it works.
I saw that the Python installer had a “Disable path length limit” feature. I think I'd be really nice to have this feature here as well. :)

@r15ch13
Copy link
Member

r15ch13 commented Mar 5, 2023

You could also split your PATH by copying your manually set directories to new variables and add them.
PATH could look like this: %FIRSTSTUFF%;C:\Windows;C:\Windows\System32;etc...;%MYPATHSTUFF%;%OTHERPROGRAMS%

But only after ScoopInstaller/Scoop#5395 gets released 😁

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

Successfully merging a pull request may close this issue.

3 participants