This always gets me, npm publish
fails to authenticate:
npm ERR! code E401
npm ERR! Unable to authenticate, need: Basic realm="Artifactory Realm"
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/rad/.npm/_logs/...Z-debug.log
The solution is:
- Sign-in to JFrog.
- Find
Edit profile
under theWelcome, ...
menu. - Put JFrog password in and unlock.
- Copy the encrypted password.
- Issue a
curl
request like this:
|
|
- Copy the output and put it in
~/.npmrc
. The file should be like:
|
|