-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during npm publish
: maxAge must be a number
#479
Comments
Same issue for me. Since the upgrade to When running the failed command
// filename: release.config.js
const config = {
branches: [
{
name: "master",
},
{
name: "develop",
channel: "dev",
prerelease: "dev",
},
],
plugins: [
// ...
["@semantic-release/npm", { pkgRoot: "." }],
["@semantic-release/npm", { pkgRoot: "backend" }],
// ...
],
};
module.exports = config; Log with [8:09:56 PM] [semantic-release] › ℹ Start step "prepare" of plugin "@semantic-release/npm"
[8:09:56 PM] [semantic-release] [@semantic-release/npm] › ℹ Write version 2.0.0-dev.1 to package.json in /home/[hidden]/develop
v2.0.0-dev.1
[8:09:56 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "@semantic-release/npm"
[8:09:56 PM] [semantic-release] › ℹ Start step "prepare" of plugin "@semantic-release/npm"
[8:09:56 PM] [semantic-release] [@semantic-release/npm] › ℹ Write version 2.0.0-dev.1 to package.json in [hidden]/develop/backend
backend
v2.0.0-dev.1
npm ERR! maxAge must be a number
npm ERR! A complete log of this run can be found in:
npm ERR! [hidden]/.npm/_logs/2022-06-15T18_09_56_444Z-debug-0.log
[8:09:57 PM] [semantic-release] › ✖ Failed step "prepare" of plugin "@semantic-release/npm"
[8:09:57 PM] [semantic-release] › ✖ An error occurred while running semantic-release: Error: Command failed with exit code 1: npm version 2.0.0-dev.1 --userconfig /tmp/7e9899c4dc3a435d94f4ed7db6adee1c/.npmrc --no-git-tag-version --allow-same-version
npm ERR! maxAge must be a number
npm ERR! A complete log of this run can be found in:
npm ERR! [hidden]/.npm/_logs/2022-06-15T18_09_56_444Z-debug-0.log
backend
v2.0.0-dev.1
at makeError ([hidden]/develop/node_modules/execa/lib/error.js:60:11)
at handlePromise ([hidden]/develop/node_modules/execa/index.js:118:26)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async module.exports ([hidden]/develop/node_modules/@semantic-release/npm/lib/prepare.js:22:3)
at async prepare ([hidden]/develop/node_modules/@semantic-release/npm/index.js:68:3)
at async validator ([hidden]/develop/node_modules/semantic-release/lib/plugins/normalize.js:34:24)
at async [hidden]/develop/node_modules/semantic-release/lib/plugins/pipeline.js:37:34
at async Promise.all (index 0)
at async next ([hidden]/develop/node_modules/p-reduce/index.js:16:18) {
shortMessage: 'Command failed with exit code 1: npm version 2.0.0-dev.1 --userconfig /tmp/7e9899c4dc3a435d94f4ed7db6adee1c/.npmrc --no-git-tag-version --allow-same-version',
command: 'npm version 2.0.0-dev.1 --userconfig /tmp/7e9899c4dc3a435d94f4ed7db6adee1c/.npmrc --no-git-tag-version --allow-same-version',
escapedCommand: 'npm version 2.0.0-dev.1 --userconfig "/tmp/7e9899c4dc3a435d94f4ed7db6adee1c/.npmrc" --no-git-tag-version --allow-same-version',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: 'backend\nv2.0.0-dev.1',
stderr: 'npm ERR! maxAge must be a number\n' +
'\n' +
'npm ERR! A complete log of this run can be found in:\n' +
'npm ERR! [hidden]/.npm/_logs/2022-06-15T18_09_56_444Z-debug-0.log',
failed: true,
timedOut: false,
isCanceled: false,
killed: false,
pluginName: '@semantic-release/npm'
}
Error: Command failed with exit code 1: npm version 2.0.0-dev.1 --userconfig /tmp/7e9899c4dc3a435d94f4ed7db6adee1c/.npmrc --no-git-tag-version --allow-same-version
npm ERR! maxAge must be a number
npm ERR! A complete log of this run can be found in:
npm ERR! [hidden]/.npm/_logs/2022-06-15T18_09_56_444Z-debug-0.log
backend
v2.0.0-dev.1
at makeError ([hidden]/develop/node_modules/execa/lib/error.js:60:11)
at handlePromise ([hidden]/develop/node_modules/execa/index.js:118:26)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async module.exports ([hidden]/develop/node_modules/@semantic-release/npm/lib/prepare.js:22:3)
at async prepare ([hidden]/develop/node_modules/@semantic-release/npm/index.js:68:3)
at async validator ([hidden]/develop/node_modules/semantic-release/lib/plugins/normalize.js:34:24)
at async [hidden]/develop/node_modules/semantic-release/lib/plugins/pipeline.js:37:34
at async Promise.all (index 0)
at async next ([hidden]/develop/node_modules/p-reduce/index.js:16:18) {
shortMessage: 'Command failed with exit code 1: npm version 2.0.0-dev.1 --userconfig /tmp/7e9899c4dc3a435d94f4ed7db6adee1c/.npmrc --no-git-tag-version --allow-same-version',
command: 'npm version 2.0.0-dev.1 --userconfig /tmp/7e9899c4dc3a435d94f4ed7db6adee1c/.npmrc --no-git-tag-version --allow-same-version',
escapedCommand: 'npm version 2.0.0-dev.1 --userconfig "/tmp/7e9899c4dc3a435d94f4ed7db6adee1c/.npmrc" --no-git-tag-version --allow-same-version',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: 'backend\nv2.0.0-dev.1',
stderr: 'npm ERR! maxAge must be a number\n' +
'\n' +
'npm ERR! A complete log of this run can be found in:\n' +
'npm ERR! [hidden]/.npm/_logs/2022-06-15T18_09_56_444Z-debug-0.log',
failed: true,
timedOut: false,
isCanceled: false,
killed: false,
pluginName: '@semantic-release/npm'
}% |
Update: I downgraded
That should narrow it down. |
Introduced by: c817a88 |
Is there any fix available except downgrading the package ? |
Upgrading semantic-release like this:
Suddenly resulted in the following error for my package:
Downgrading back to the previous package versions gets rid of the error. Nothing else about the repo config has changed.
The text was updated successfully, but these errors were encountered: