Skip to content

[BUG] npm install --no-save removes other dependencies #1460

@vanpana

Description

@vanpana

What / Why

Installing npm dependencies with the --no-save flag will remove other dependencies that were installed in the same manner.

When

Always.

Where

  • npm public registry

How

Current Behavior

Installing npm dependencies with the --no-save flag will remove other dependencies that were installed in the same manner.

Steps to Reproduce

  1. Init a folder with a package.json
  2. Run npm install {package1} --no-save. (replace package1 with whatever you want)
  3. Check node_modules for {package1}, you'll find it.
  4. Run npm install {package2} --no-save. (replace package2 with whatever you want)
  5. Check node_modules for {package2}, you'll find it.
  6. Check node_modules for {package1}, you WON'T find it.

Expected Behavior

Both packages should exist in node_modules

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions