You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/definitions/errors.js
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,14 @@ Your configuration for the \`tarballDir\` option is \`${tarballDir}\`.`,
22
22
details: `The [pkgRoot option](${linkify('README.md#pkgroot')}) option, if defined, must be a \`String\`.
23
23
24
24
Your configuration for the \`pkgRoot\` option is \`${pkgRoot}\`.`,
25
+
}),
26
+
ENONPMTOKEN: ({registry})=>({
27
+
message: 'No npm token specified.',
28
+
details: `An [npm token](${linkify(
29
+
'README.md#npm-registry-authentication'
30
+
)}) must be created and set in the \`NPM_TOKEN\` environment variable on your CI environment.
31
+
32
+
Please make sure to create an [npm token](https://docs.npmjs.com/getting-started/working_with_tokens#how-to-create-new-tokens) and to set it in the \`NPM_TOKEN\` environment variable on your CI environment. The token must allow to publish to the registry \`${registry}\`.`,
25
33
}),
26
34
EINVALIDNPMTOKEN: ({registry})=>({
27
35
message: 'Invalid npm token.',
@@ -33,7 +41,6 @@ If you are using Two-Factor Authentication, make configure the \`auth-only\` [le
33
41
34
42
Please make sure to set the \`NPM_TOKEN\` environment variable in your CI with the exact value of the npm token.`,
35
43
}),
36
-
37
44
ENOPKGNAME: ()=>({
38
45
message: 'Missing `name` property in `package.json`.',
39
46
details: `The \`package.json\`'s [name](https://docs.npmjs.com/files/package.json#name) property is required in order to publish a package to the npm registry.
0 commit comments