when I run npm install to download packages for my node.js project at first it look ups internet instead of my nexus repository to download pakages to build my project. i set .npmrc in my project config and all credentials are ok for access.my question is how to force npm install command prioritize nexus npm registry over downloading from internet ?
Asked
Active
Viewed 83 times
0
-
1can you share npmrc file? – Mojtaba Nejad Poor Esmaeili Jun 06 '23 at 14:10
-
1impossible to answer without the npmrc file, you can obscure the authToken and share it here – ayrusme Jun 06 '23 at 17:29
-
the problem was actually internet access on my nexus server , so now my question is how to download them locally and whenever the server dont have internet access it download them from hosted repository? – Ali farahzadi Jun 07 '23 at 06:18