Without changing the global npm configuration of the workstation or creating an .npmrc
file in the current directory, I want to run an npx package using a private nexus registry.
So, is it possible to run npx
commands (preferably cross-paltform) with inline options like registry
and strict-ssl
? Something like:
npx somerunnablepackage --registry https://mynexus --strict-ssl false
I tried the snippet above on PowerShell/Windows, but my registry was not hit and it tried to reach the default registry (https://registry.npmjs.org) anyway.