What / Why
Npm does not respect package.json dependencies. Lock file is missing and switched off in .npmrc:
In package.json dependencies are set to latest minor e.g.
"dependencies": {
"@hqjs/hq": "^0.0.15"
}
later versions of dependencies are available (e.g. @hqjs/hq@0.0.16), but during npm install instead of latest minor the exact ones (ignoring minor flag) that are specified in package.json are installed (e.g. @hqjs/hq@0.0.15).
When
Every time during npm install
Where
Any npm public repository
Steps to Reproduce
- Create new project folder
- Create
.npmrc configuration inside this project folder with package-lock=false content
- Init npm project with
npm init
- Specify dependencies
"@hqjs/hq": "^0.0.15"
- Run
npm install
Current Behavior
@hqjs/hq@0.0.15 will be installed. Newest version 0.0.16 will be ignored despite of package.json configuration
Expected Behavior
@hqjs/hq@0.0.16 should be installed (as a latest minor for this moment)
System
OS: macOS Catalina 10.15.3
node: v12.6.0
npm: 6.14.2
What / Why
Npm does not respect
package.jsondependencies. Lock file is missing and switched off in.npmrc:package-lock=falseIn
package.jsondependencies are set to latest minor e.g.later versions of dependencies are available (e.g.
@hqjs/hq@0.0.16), but duringnpm installinstead of latest minor the exact ones (ignoring minor flag) that are specified inpackage.jsonare installed (e.g.@hqjs/hq@0.0.15).When
Every time during
npm installWhere
Any npm public repository
Steps to Reproduce
.npmrcconfiguration inside this project folder withpackage-lock=falsecontentnpm init"@hqjs/hq": "^0.0.15"npm installCurrent Behavior
@hqjs/hq@0.0.15will be installed. Newest version0.0.16will be ignored despite ofpackage.jsonconfigurationExpected Behavior
@hqjs/hq@0.0.16should be installed (as a latest minor for this moment)System
OS: macOS Catalina 10.15.3
node: v12.6.0
npm: 6.14.2