Skip to content

Commit c9f0da5

Browse files
committed
fix(errors): bring back the invalid token error
for #958
1 parent a2aa38f commit c9f0da5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/definitions/errors.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ export function EINVALIDNPMAUTH() {
5252
"README.md#npm-registry-authentication"
5353
)}) is not configured as needed.
5454
55+
export function EINVALIDNPMTOKEN({ registry }) {
56+
return {
57+
message: "Invalid npm token.",
58+
details: `The [npm token](${linkify(
59+
"README.md#npm-registry-authentication"
60+
)}) configured in the \`NPM_TOKEN\` environment variable must be a valid [token](https://docs.npmjs.com/getting-started/working_with_tokens) allowing to publish to the registry \`${registry}\`.
61+
5562
Please verify your authentication configuration.`,
5663
};
5764
}

0 commit comments

Comments
 (0)