如何在SSL Nexus注册表中使用npm?

如何在SSL Nexus注册表中使用npm?,npm,nexus,ca,Npm,Nexus,Ca,我已经在windows上安装了npm,并尝试将其用于Nexus公司。 为此,我创建了~/.npmrc registry = https://mycompany/nexus/content/groups/npm-all/ 然后,我设置了npm并尝试下载一个库,但npm抛出了一个错误: C:\git-repos\my-npm_module>npm --loglevel info install grunt npm info it worked if it ends with ok npm i

我已经在windows上安装了npm,并尝试将其用于Nexus公司。 为此,我创建了~/.npmrc

registry = https://mycompany/nexus/content/groups/npm-all/
然后,我设置了npm并尝试下载一个库,但npm抛出了一个错误:

C:\git-repos\my-npm_module>npm --loglevel info install grunt
npm info it worked if it ends with ok
npm info using npm@2.15.9
npm info using node@v4.5.0
npm WARN package.json self-service-portal@1.0.0 No README data
npm info addNameTag [ 'grunt', 'latest' ]
npm info attempt registry request try #1 at 09:39:42
npm http request GET https://mycompany/nexus/content/groups/npm-all/grunt
npm info retry will retry, error on last attempt: Error: unable to get local issuer certificate
npm info attempt registry request try #2 at 09:39:52
npm http request GET https://mycompany/nexus/content/groups/npm-all/grunt
npm info retry will retry, error on last attempt: Error: unable to get local issuer certificate

如何在SSL Nexus注册表中使用npm?

我的问题的解决方案是在.npmrc文件中添加严格的SSL false参数和ca以清空

registry = https://mycompany/nexus/content/groups/npm-all/
ca=
strict-ssl=false