From 3799d8ef0578e596058b95a053f6cb74855702a8 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Mon, 18 Feb 2019 23:25:57 +0100 Subject: [PATCH] stars: Fix typo in error message (#158) The command is called stars, not starts. PR-URL: https://github.com/npm/cli/pull/158 Credit: @phihag Reviewed-By: @zkat --- lib/stars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stars.js b/lib/stars.js index ea3581f1d4b44..8b28baffd8c9a 100644 --- a/lib/stars.js +++ b/lib/stars.js @@ -27,7 +27,7 @@ function stars ([user], cb) { }) }).catch(err => { if (err.code === 'ENEEDAUTH') { - throw Object.assign(new Error("'npm starts' on your own user account requires auth"), { + throw Object.assign(new Error("'npm stars' on your own user account requires auth"), { code: 'ENEEDAUTH' }) } else {