【发布时间】:2019-12-25 13:03:55
【问题描述】:
在不更改工作站的全局 npm 配置或在当前目录中创建 .npmrc 文件的情况下,我想使用私有 nexus 注册表运行 npx 包。
那么,是否可以使用 registry 和 strict-ssl 等内联选项运行 npx 命令(最好是跨平台)?比如:
npx somerunnablepackage --registry https://mynexus --strict-ssl false
我在 PowerShell/Windows 上尝试了上面的 sn-p,但我的注册表没有被命中,它仍然试图访问默认注册表 (https://registry.npmjs.org)。
【问题讨论】:
标签: npx npm-registry