-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: troubleshooting --------- Co-authored-by: Mikhail Shipov <[email protected]>
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
id: eneedauth | ||
title: ENEEDAUTH | ||
--- | ||
|
||
## Error | ||
|
||
Publication failure: | ||
|
||
``` | ||
Error: Command "npm publish ./package --tag latest --registry https://registry.npmjs.org/ --unsafe-perm" | ||
... | ||
npm ERR! code ENEEDAUTH | ||
npm ERR! need auth This command requires you to be logged in to https://registry.npmjs.org/ | ||
npm ERR! need auth You need to authorize this machine using `npm adduser` | ||
``` | ||
|
||
## Reason | ||
|
||
In Node.js after 18.14.0 version npm was upgraded to major 9.3.1 version - https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md#auth, which broke authorization logic in pvm | ||
|
||
## Solution | ||
|
||
Stick to 18.13 node version - `node:18.13.0` until https://github.com/Tinkoff/pvm/issues/75 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters