如何代理ProNPM软件包
我在一家公司工作,我们的前端构建在一台具有非常严格的防火墙策略的服务器上 因此,我们对如何代理ProNPM软件包,npm,font-awesome,nexus,Npm,Font Awesome,Nexus,我在一家公司工作,我们的前端构建在一台具有非常严格的防火墙策略的服务器上 因此,我们对https://registry.npmjs.org这很有效 现在,我想为FontSupersome Pro 5做同样的事情 Fontawesome告诉我在我的.npmrc文件中添加这两行请参见: 我以前的npmrc文件中有这样一行 registry=https://nexus.mycompany.com/repository/npm-proxy/ 我尝试了以下方法: registry=https://ne
https://registry.npmjs.org
这很有效
现在,我想为FontSupersome Pro 5做同样的事情
Fontawesome告诉我在我的.npmrc
文件中添加这两行请参见:
我以前的npmrc文件中有这样一行
registry=https://nexus.mycompany.com/repository/npm-proxy/
我尝试了以下方法:
registry=https://nexus.mycompany.com/repository/npm-proxy/
@fortawesome:registry=https://nexus.mycompany.com/repository/fontawesome/ <!-- which i created on the nexus side-->
//nexus.mycompany.com/repository/fontawesome/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}
注册表=https://nexus.mycompany.com/repository/npm-proxy/
@福田:注册处=https://nexus.mycompany.com/repository/fontawesome/
//nexus.mycompany.com/repository/fontawesome/:_authToken=${fontawesome\u NPM\u AUTH\u TOKEN}
但它不起作用,我不知道我是否需要nexus端的不同设置或npmrc端的不同设置…我们确实有相同的问题,我们要求相应的团队将字体Awesome Pro URL添加到防火墙中的允许列表中。我们确实有相同的问题,我们要求相应的团队将字体Awesome Pro URL添加到防火墙中的允许列表中
registry=https://nexus.mycompany.com/repository/npm-proxy/
@fortawesome:registry=https://nexus.mycompany.com/repository/fontawesome/ <!-- which i created on the nexus side-->
//nexus.mycompany.com/repository/fontawesome/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}