Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/error-message.js')
-rw-r--r--lib/utils/error-message.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/utils/error-message.js b/lib/utils/error-message.js
index 4d584346d..5fa361efc 100644
--- a/lib/utils/error-message.js
+++ b/lib/utils/error-message.js
@@ -199,12 +199,7 @@ module.exports = (er, npm) => {
const valResult = nameValidator(pkg)
- if (valResult.validForNewPackages) {
- detail.push([
- '404',
- 'You should bug the author to publish it (or use the name yourself!)',
- ])
- } else {
+ if (!valResult.validForNewPackages) {
detail.push(['404', 'This package name is not valid, because', ''])
const errorsArray = [...(valResult.errors || []), ...(valResult.warnings || [])]