Hi,
I configured a private and hosted npm repository and it worked well! I'm able to publish to it and to get the files. So I guess my "
npmrc" file (on Windows) if correctly configured for authentication :
It's something like :
----------------------------
prefix=${APPDATA}\npm
registry=
http://XXXXX:8081/nexus/content/repositories/npm-privatealways-auth=true
init.author.name=John Doe
init.author.email=
exa...@example.comemail=
exa...@example.com_auth=dWyhbWE4bTrvaHcheWR0MTl3R0o=
----------------------------
But I also try to configure a proxy repository pointing to the official "
registry.npmjs.org". In the end, I want to group those two repositories together in a
group repository but, for now, I try to use the proxy repository directly and it doesn't work. My test "
npmrc" now contains :
registry=http://XXXXX:8081/nexus/content/repositories/npm-officielAnd here's my config for this repo :
http://i.imgur.com/Pgk7Y19.pngMy user has all the permissions in Nexus.
When I try to do "
npm install express --save" I get an error and this log appears in Nexus :
--------------------
org.sonatype.nexus.content.internal.ContentServlet - org.sonatype.nexus.proxy.LocalStorageException: Metadata service error, caused by: org.apache.http.conn.HttpHostConnectException: Connect to
registry.npmjs.org:443 [
registry.npmjs.org/23.235.46.162] failed: Connection refused: connect, caused by: java.net.ConnectException: Connection refused: connect [client=10.12.37.5,ua=npm/2.14.7 node/v4.2.1 win32 x64,req=GET
http://scorpowdrmd1:8081/nexus/content/repositories/npm-officiel/express]
--------------------
Does this mean "
registry.npmjs.org:443" is blocked by our firewall (this is possible, but I did ask the sysadmins to open port 443 for "
registry.npmjs.org" and they told me it was done), or does it mean
Nexus refused the connection?
Thanks!