Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/install/save.js')
-rw-r--r--lib/install/save.js3
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)
}