Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

uninstall scripts don't seem to be called #17893

@andreineculau

Description

@andreineculau

I'm opening this issue because:

  • npm is crashing.
  • npm is producing an incorrect install.
  • npm is doing something I don't understand.
  • Other (see below for feature requests):

What's going wrong?

npm uninstall <dep> does NOT call the {pre,,post}uninstall scripts.
Furthermore, npm uninstall <git dep> calls the {pre,,post}install + prepare + prepack + postpack scripts.

How can the CLI team reproduce the problem?

see https://github.com/andreineculau/package-json-scripts

npm install package-json-scripts
npm uninstall package-json-scripts

npm install git://github.com/andreineculau/package-json-scripts.git#master
npm uninstall git://github.com/andreineculau/package-json-scripts.git#master

supporting information:

  • npm -v prints: 5.3.0
  • node -v prints: 8.2.1
  • npm config get registry prints: https://registry.npmjs.org/
  • Windows, OS X/macOS, or Linux?: OSX

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions