Skip to content

[BUG] Prepare script not running  #2890

@tejohnso

Description

@tejohnso

I've searched a number of issues related to prepare but could not find quite the same scenario.

Current Behavior:

npm install does not run prepare script and does not install devDependencies

Expected Behavior:

npm install should run prepare script and install devDependencies

Steps To Reproduce:

  1. Create a private repo on github with a prepare script in the package.json file
  2. npm init -y in a local test folder
  3. npm install git+ssh://git@github.com:ghname/ghrepo#semver:^0.0.0
  4. Observe prepare script is not run

Environment:

OS: Arch Linux
NPM: 7.6.3
NODE: 15.11.0

Metadata

Metadata

Assignees

Labels

Priority 1high priority issueRelease 7.xwork is associated with a specific npm 7 releaseWontfixthis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions