NPM package not publishing


I keep getting this error whenever I try to publish my NPM package.

Im doing
npm publish --access public

Is easier-iss the name of your package, or a dependency?

If it’s yours, I believe you need to go to first, log in, and claim that package name.


What I would do if I were you is, authenticate myself with

npm adduser

then publish the package with

npm publish

. I have been able to publish packages without any problem in this way.

1 Like

Which will ask you for your npm account credentials, so make sure you have an npm account :slight_smile:

1 Like

I’ve already fixed this issue. Thanks!

I just signed in and then it allowed me.

1 Like