Skip to content

Commit

Permalink
install: Deprecate --dev for install
Browse files Browse the repository at this point in the history
PR-URL: npm/npm#9024
  • Loading branch information
bengl authored and iarna committed Aug 12, 2015
1 parent 1545dbb commit 3428611
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ function install (where, args, cb) {
// the /path/to/node_modules/..
var dryrun = !!npm.config.get('dry-run')

if (npm.config.get('dev')) {
log.warn('install', 'Usage of the `--dev` option is deprecated. Use `--only=dev` instead.')
}

if (where === globalTop && !args.length) {
args = ['.']
}
Expand Down

0 comments on commit 3428611

Please sign in to comment.