Skip to content

[BUG] run npm update --save results in error if dependency is defined with file: #4454

@alex-enchi

Description

@alex-enchi

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

We have one of the local dependencies defined with file:../dependency Run of npm update --save results in

npm ERR! Cannot read properties of null (reading 'isRoot')

and package.json is not updated

Expected Behavior

update should skip file:../ dependencies and update properly package.json

Steps To Reproduce

just having one of dependencies defined as file:../ and run of npm update --save results in error

Environment

  • npm: 8.5.1
  • Node.js: v16.14.0
  • OS Name: MacOs
  • System Model Name:
  • npm config: nothing worth mentioning

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions