Skip to content
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

Clarify steps required to create an NPM module #366

Open
adamzerner opened this issue Feb 2, 2024 · 1 comment
Open

Clarify steps required to create an NPM module #366

adamzerner opened this issue Feb 2, 2024 · 1 comment

Comments

@adamzerner
Copy link

In following the directions in the "Steps" section I get the following error after running npm publish:

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`

npm ERR! A complete log of this run can be found in: /Users/adamzerner/.npm/_logs/2024-02-02T07_19_33_940Z-debug-0.log

It looks like there are more steps to complete. I think that it would be helpful for dnt's docs to mention this, and perhaps link to a place where these steps are documented.

@bebraw
Copy link

bebraw commented Feb 27, 2024

https://docs.npmjs.com/cli/v10/using-npm/developers covers the needed steps well. It's a good idea to use OTP (--otp flag) for a safer workflow. For serious usage I recommend setting up a GitHub Action to publish when you tag a new version through git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants