diff options
Diffstat (limited to 'lib/install/save.js')
-rw-r--r-- | lib/install/save.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/install/save.js b/lib/install/save.js index 044b12023..56a4a892a 100644 --- a/lib/install/save.js +++ b/lib/install/save.js @@ -43,6 +43,9 @@ function andWarnErrors (cb) { function saveShrinkwrap (tree, next) { validate('OF', arguments) + if (!npm.config.get('shrinkwrap') || !npm.config.get('package-lock')) { + next() + } createShrinkwrap(tree, {silent: false}, next) } |