I was working on a client contract, and they used Artifactory internally. Now that I'm on a different project, I'd like to remove it. I can't even remember how we set it up now, and I must be Googling for the wrong keywords because I can't find anything on this. I just want to see my packages coming from npm again, but Artifactory won't let me have what I want. What am I missing here?
我正在制定客户合同,他们在内部使用了Artifactory。现在我正在进行另一个项目,我想删除它。我甚至不记得我们现在如何设置它,我必须谷歌搜索错误的关键字,因为我找不到任何关于此的东西。我只想再次看到我的包裹来自npm,但Artifactory不会让我拥有我想要的东西。我在这里想念的是什么?
1 个解决方案
#1
2
Remove you ~/.npmrc file and try again. You may need to reload the default .npmrc file provided with npm (not sure about that).
删除〜/ .npmrc文件,然后重试。您可能需要重新加载npm提供的默认.npmrc文件(不确定)。
If you are curious, you can probably look into your ~/.npmrc file and confirm that it contains a line like
如果你很好奇,你可以查看你的〜/ .npmrc文件并确认它包含一行代码
registry=http://<artifactory_server>/artifactory/api/<npm_repo>
This is why any request is sent to the Artifactory server rather than the public npm servers.
这就是为什么任何请求被发送到Artifactory服务器而不是公共npm服务器的原因。
#1
2
Remove you ~/.npmrc file and try again. You may need to reload the default .npmrc file provided with npm (not sure about that).
删除〜/ .npmrc文件,然后重试。您可能需要重新加载npm提供的默认.npmrc文件(不确定)。
If you are curious, you can probably look into your ~/.npmrc file and confirm that it contains a line like
如果你很好奇,你可以查看你的〜/ .npmrc文件并确认它包含一行代码
registry=http://<artifactory_server>/artifactory/api/<npm_repo>
This is why any request is sent to the Artifactory server rather than the public npm servers.
这就是为什么任何请求被发送到Artifactory服务器而不是公共npm服务器的原因。