Skip to content

Commit

Permalink
fix: npm install --dev deprecation message
Browse files Browse the repository at this point in the history
Related to npm#1539
  • Loading branch information
sandratatarevicova committed Jul 28, 2020
1 parent 42e4625 commit 9edbc3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function install (where, args, cb) {
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.')
log.warn('install', 'Usage of the `--dev` option is deprecated. Use `--also=dev` instead.')
}

if (where === globalTop && !args.length) {
Expand Down

0 comments on commit 9edbc3d

Please sign in to comment.