diff options
author | Pablo Cúbico <pablocuadrado@gmail.com> | 2020-05-05 00:00:07 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-06-05 04:11:15 +0300 |
commit | 78612b51e6265cbc140ea31726159b05be5ac533 (patch) | |
tree | 30601a17cd50fceda1af4767087816f453b9b0ea /lib | |
parent | 1f9cfdac2eda3bd4a3b1427fc450a05811f353fe (diff) |
Better --force message, correct config.force documentation
The current warning is not an actual help message, is not suggesting any
actions, and it's quite condescending.
While the 'I sure hope you know what you are doing' was always intended
as a sincere and genuine hope, people tend to read it in a variety of
ways, and it doesn't provide any helpful information.
PR-URL: https://github.com/npm/cli/pull/1259
Credit: @pablocubico
Close: #1259
Close: #1244
Reviewed-by: @isaacs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/npm.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/npm.js b/lib/npm.js index e88d474a1..dbba2f788 100644 --- a/lib/npm.js +++ b/lib/npm.js @@ -205,7 +205,7 @@ loadErr = er if (er) return cb_(er) if (npm.config.get('force')) { - log.warn('using --force', 'I sure hope you know what you are doing.') + log.warn('using --force', 'Recommended protections disabled.') } npm.config.loaded = true loaded = true |