diff --git a/lib/run-script.js b/lib/run-script.js index 1daaeb9900de1..712d64ad0c381 100644 --- a/lib/run-script.js +++ b/lib/run-script.js @@ -97,7 +97,7 @@ class RunScript extends BaseCommand { !Object.prototype.hasOwnProperty.call(scripts, event) && !(event === 'start' && await isServerPackage(path)) ) { - if (this.npm.config.get('if-present')) + if (this.npm.config.get('if-present', 'cli')) return const suggestions = await didYouMean(this.npm, path, event)