Skip to content

[BUG] npm ci doesn't run postinstall script #1905

Closed
@davidmurdoch

Description

@davidmurdoch

Current Behavior:

npm ci doesn't run the postinstall script

Expected Behavior:

npm ci should run the postinstall script

Steps To Reproduce:

  1. create a new folder and put the following minimal package.json in it:
{
  "scripts": {
    "postinstall": "echo \"it should echo this\""
  }
}

  1. run npm install
  2. run npm ci
  3. notice how npm ci DOES NOT run the postinstall script

Environment:

ex.

  • OS: Kubuntu 20.04
  • Node: 14.13.0
  • npm: 7.0.0-rc.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions