Skip to content

[Bug]: pnpm does not add a global bin directory #6713

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
3 tasks done
advait404 opened this issue Apr 13, 2025 · 0 comments · May be fixed by #6762
Open
3 tasks done

[Bug]: pnpm does not add a global bin directory #6713

advait404 opened this issue Apr 13, 2025 · 0 comments · May be fixed by #6762

Comments

@advait404
Copy link

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

pnpm

Expected/Current Behaviour

Currently the global bin directory is not configured then installing pnpm.

Steps to Reproduce

scoop install main/pnpm
pnpm add -g @microsoft/inshellisense

console output:
ERROR The configured global bin directory "C:\Users\USER\AppData\Local\pnpm" is not in PATH
For help, run: pnpm help add

Possible Solution

Ideally pnpm should create a custom global bin directory in the scoop persist file so that all packages installed globally can be retained. Furthermore, this directory should be added to the path.

I can see there is a --global-dir: Specify a custom directory to store global packages option which maybe can be used.

Scoop and Buckets Version

Current Scoop version:
859d1db5 (HEAD -> master, tag: v0.5.2, origin/master, origin/HEAD) chore(release): Bump to version 0.5.2 (#6080)

'main' bucket:
cc31681e6 (HEAD -> master, origin/master, origin/HEAD) trid: Update to version 2.24-25.04.12

Scoop Config

last_update          scoop_repo                              scoop_branch aria2-warning-enabled
-----------          ----------                              ------------ ---------------------
13-Apr-25 8:14:02 PM https://github.com/ScoopInstaller/Scoop master                       False

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.5.0
PSEdition                      Core
GitCommitId                    7.5.0
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

No response

@advait404 advait404 added the bug Something isn't working label Apr 13, 2025
@jack-mil jack-mil linked a pull request Apr 24, 2025 that will close this issue
2 tasks
@HUMORCE HUMORCE added package improvement and removed bug Something isn't working labels Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants