Main icon indicating copy to clipboard operation
Main copied to clipboard

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

Open advait404 opened this issue 6 months ago • 0 comments

Prerequisites

  • [x] I have written a descriptive issue title.
  • [x] I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • [x] 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 avatar Apr 13 '25 12:04 advait404