2

We have a private registry for npm. I'm getting an npm error running dotnet publish. Is there a way to specify the npm private registry. (This is on a build server, jenkins).

Cirem
  • 840
  • 1
  • 11
  • 15

2 Answers2

2

I was able to do this by setting an environment variable (NPM_CONFIG_REGISTRY)

Cirem
  • 840
  • 1
  • 11
  • 15
0
npm config set registry <URL>

should also works, or create variable in repository in .npmrc file

xxxvodnikxxx
  • 1,270
  • 2
  • 18
  • 37