Navigation Menu

Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

WARN if npm-shrinkwrap.json is present #2660

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/install.js
Expand Up @@ -85,6 +85,11 @@ function install (args, cb_) {
// the /path/to/node_modules/..
var where = path.resolve(npm.dir, "..")

// output a message if shrinkwrap is present
if(path.resolve(where, "npm-shrinkwrap.json")) {
log.warn("install", "using npm-shrinkwrap.json");
}

// internal api: install(where, what, cb)
if (arguments.length === 3) {
where = args
Expand Down