You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running npm install ../../some/other/path/globals will attempt to run globals' prepare script.
Expected Behavior
I would expect the script not to run, as the documentation for prepare says "Runs on local npm install without any arguments". This is not a local npm install witout any arguments - I view it the same as npm install globals, which does not run prepare.
Steps To Reproduce
Install the globals package somewhere
In a completely different folder, run npm install ../path/to/globals to try to symlink it
:(
Environment
npm: 11.1.0
Node.js: 22.14.0
OS Name: Windows 11 24H2
System Model Name: Surface
npm config:
; This is the only non-commented, non-authentication lineprefix = "C:\\Users\\winstonliu\\AppData\\Roaming\\npm"
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Running
npm install ../../some/other/path/globals
will attempt to run globals'prepare
script.Expected Behavior
I would expect the script not to run, as the documentation for
prepare
says "Runs on local npm install without any arguments". This is not a local npm install witout any arguments - I view it the same asnpm install globals
, which does not runprepare
.Steps To Reproduce
globals
package somewherenpm install ../path/to/globals
to try to symlink itEnvironment
The text was updated successfully, but these errors were encountered: