Is there an existing issue for this?
This issue exists in the latest npm version
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
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
We have one of the local dependencies defined with
file:../dependencyRun ofnpm update --saveresults inand
package.jsonis not updatedExpected Behavior
updateshould skipfile:../dependencies and update properlypackage.jsonSteps To Reproduce
just having one of dependencies defined as
file:../and run ofnpm update --saveresults in errorEnvironment