We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8676429 commit e4b9796Copy full SHA for e4b9796
lib/install/read-shrinkwrap.js
@@ -19,8 +19,7 @@ function readShrinkwrap (child, next) {
19
maybeReadFile('npm-shrinkwrap.json', child),
20
// Don't read non-root lockfiles
21
child.isTop && maybeReadFile('package-lock.json', child),
22
- child.isTop && maybeReadFile('package.json', child),
23
- (shrinkwrap, lockfile, pkgJson) => {
+ (shrinkwrap, lockfile) => {
24
if (shrinkwrap && lockfile) {
25
log.warn('read-shrinkwrap', 'Ignoring package-lock.json because there is already an npm-shrinkwrap.json. Please use only one of the two.')
26
}
0 commit comments