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
When I run npm publish, after I successfully provide the OTP in the browser, the NPM CLI errors with:
400 Bad Request - PUT https://registry.npmjs.org/@incanta%2fconfig - child "otp" fails because ["otp" with value "[object Object]" fails to match the required pattern: /^\d+$/, "otp" length must be 64 characters long]
Downgrading to npm@10.7.0 publishes the update without any issue.
@andrewangelle I can confirm that 10.8.1 did fix this issue. Make sure you have the latest version of npm: npm i -g npm and check npm --version is 10.8.1 (latest) or higher. If you're still having issues, please open a new GH issue.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When I run
npm publish
, after I successfully provide the OTP in the browser, the NPM CLI errors with:Downgrading to
npm@10.7.0
publishes the update without any issue.Expected Behavior
The package should publish without error.
Steps To Reproduce
npm i -g npm@10.8.0
https://github.com/incanta/node-config
npm i -g yarn
yarn
yarn build
package.json
package name so you can publish itnpm publish
Repeat these steps after downgrading NPM
npm i -g npm@10.7.0
to see that you can publish.Environment
The text was updated successfully, but these errors were encountered: