Skip to content

[BUG] npm v7 breaks itself upon installing itself in --global --production mode. #1708

Closed
npm/arborist
#203
@DeeDeeG

Description

@DeeDeeG

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)

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions