Current Behavior:
npm 7 is broken after installing itself in --global --production mode.
Expected Behavior:
npm 7 installing itself in --global --production mode should not cause a broken npm install.
Steps To Reproduce:
From a working, stable release of npm, run the following command twice and you will have a broken install of npm.
npm install --global --production npm@next-7
npm install --global --production npm@next-7 (Once more, with feeling!)
At this point, npm has reinstalled itself in a broken way, and no npm subcommands that I've tried will work.
Environment:
- OS: Ubuntu 20.04
- Node: 14.8.0
- npm: 6.14.7 (for bootstrapping this whole process)
- npm: 7.0.0-beta.6 (reinstalling itself in a broken state)