[preinstall] preinstall not works
Open
Nobody has claimed this yet.
Bug
Needs Triage
Release 9.x
- Dominant language
- JavaScript
- Stars
- 10.1k
- Forks
- 4.7k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 19
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
preinstall not fired, and I've set foreground-scripts true
Expected Behavior
run preinstall scripts
Steps To Reproduce
- In this environment...
- With this config...
- Run '...'
- See error...
Environment
- npm: 9.1.2
- Node.js: v14.19.0
- OS Name: Mac OS 12.6
- System Model Name: MacBook Air M1
- npm config:
; "global" config from /Users/wanghongye/.nvm/versions/node/v14.19.0/etc/npmrc
foreground-scripts = true
; "user" config from /Users/wanghongye/.npmrc
email = ""
store-dir = "/Users/wanghongye/.pnpm-store/v3"
; "cli" config from command line options
location = "project"
; node bin location = /Users/wanghongye/.nvm/versions/node/v14.19.0/bin/node
; node version = v14.19.0
; npm local prefix = /Users/wanghongye/Desktop/homyee/vitest-repo
; npm version = 9.1.2
; cwd = /Users/wanghongye/Desktop/homyee/vitest-repo
; HOME = /Users/wanghongye
; Run `npm config ls -l` to show all defaults.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with npm 9.1.2, Node.js v14.19.0, macOS 12.6, and foreground-scripts enabled. The report does not identify a repository file or complete reproduction; determine which install command and package setup fail, then confirm that the preinstall script runs in the reported configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100