Skip to content

[BUG] npm link does not respect --no-save #3619

Closed
@ljharb

Description

@ljharb

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

npm link --no-save $something

updates package.json with a file:// link.

Expected Behavior

--no-save means nothing gets saved.

Steps To Reproduce

See above.

Environment

  • OS: Mac
  • Node: 16.6.1
  • npm: v7.20.3

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingPriority 1high priority issueRelease 7.xwork is associated with a specific npm 7 releaseRelease 8.xwork is associated with a specific npm 8 releaseRelease 9.xwork is associated with a specific npm 9 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions