-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
Bugthing that needs fixingthing that needs fixingDocumentationdocumentation related issuedocumentation related issuePriority 2secondary priority issuesecondary priority issue
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
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 as npm install globals, which does not run prepare.
Steps To Reproduce
- Install the
globalspackage somewhere - In a completely different folder, run
npm install ../path/to/globalsto 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 line
prefix = "C:\\Users\\winstonliu\\AppData\\Roaming\\npm"Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingDocumentationdocumentation related issuedocumentation related issuePriority 2secondary priority issuesecondary priority issue