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
path: root/lib/utils
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2022-03-16 18:51:37 +0300
committernlf <nlf@github.com>2022-03-17 20:57:03 +0300
commitf7e58fa74d9008731b86c82f75251ca295056cf1 (patch)
treef4fc5ee0c7da88a16fb0b029c4b81ed4ad9523fa /lib/utils
parentf0c6e86ca5920baa85355af3ea50ed13f7429a10 (diff)
fix: remove "bug the author" message from package 404
Diffstat (limited to 'lib/utils')
-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 || [])]