--registry https://registry.npmjs.org
is been used to get around artifactory alike proxy when install with npm install
But I want to do similiar thing with npm xxx
because I encounter
npm ERR! code E401
npm ERR! Unable to authenticate, need: Basic realm="Artifactory Realm"
when try to do npx create-react-app myapp
Is that something possible?
I literarily can't find any info about this online!
You can run something like:
npm_config_registry=https://registry.npmjs.org npx xxx
This is suggested by the npm team. I ran into this same problem, but that was because I needed to have npx point to a private registry.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With