Publishing a npm package

Not Found – PUT https://gitlab.selectiont.com/api/v4/packages/npm/@werm-bash%2fscripts-root – 404 Not Found

create a package.json and this code

this line references a gitlab project

we access tokens so we don’t have to login to publish. we can create tokens at the project level or the instance level. Lets create one at the project level. While in project go to:

copy and paste into .npmrc at the root the package your publishing

you can also use a env var

lets look at our package registry for project 422

nothing, now lets publish again

done

lets check the package registry again

Leave a Reply

Your email address will not be published.