如何从 Nexus oss 代理获取依赖于 github 项目的 npm 包

How to get npm packages with dependency to github projects from Nexus oss proxy

我们在没有互联网连接的专用网络中工作。 最近我们决定设置 nexus oss 以使用 npm 、 maven 和其他依赖管理系统。 但是当我们将 npm registry url 设置为 nexus proxy url 时,使用此命令:

npm config set registry /*proxy url*/

有些包在安装时出错,因为它依赖于 github 项目。 我该如何解决这个问题?

仅设置 npm registry 时出现此问题。 您应该使用此命令将代理设置为 nexus oss url :

npm config set proxy /*nexus proxy url*/