npm/npm

uninstall scripts don't seem to be called

Closed this issue · 1 comments

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

This was an error with my test setup AFAICS. Thanks anyway!