I am trying to run npm publish
on a package after I've upgraded to node v18
and npm v9
.
But I get the following error:
This command requires you to be logged in to https://some-package.com:48082/nexus/repository/path1/
You need to authorize this machine using npm adduser
My user .npmrc
file:
//some-package.com:48082/nexus/repository/:keyfile=/Users/<host>/Documents/Certificates/npm.key.pem.
//some-package.com:48082/nexus/repository/:certfile=/Users/<host>/Documents/Certificates/npm.crt.pem
//registry.npmjs.org/:_authToken=<auth_token>
My project .npmrc
file:
@fortawesome:registry=https://npm.fontawesome.com/.
@scope1:registry=https://some-package.com:48082/nexus/repository/path1/
@scope2:registry=https://some-package.com:48082/nexus/repository/path2/
//npm.fontawesome.com/:_authToken=<auth_token>
//some-package.com:48082/nexus/repository/:_auth=<auth>
strict-ssl=false
npm whoami
, I get the username I've created, so I'm assuming I'm logged in. – Diversion