2

I work in a banking domain company so here many link and websites are blocked. Currently I am working on a project where I am using react and Node.js as tech stack. So whenever I want to install any new dependency or just npm install I get access problem. Is there any other solution to download the dependencies from package.json file apart from npm install

iamelix
  • 43
  • 1
  • 7
  • you could manually download source code from github for small libraries but big libs going to have a lot of dependecies. Also check for proxy settings if you dont have access to npm repos its going to be a big problem – Panos K Oct 26 '18 at 06:38

1 Answers1

0

It'll be really tough not having yarn or npm do dependency management for you but there are options.

I highly recommend you set up a private npm registry just for your company. There are many paid and free services that can do this as well as open source self-hosted solutions. Once set up, all you have to do is edit your npm or yarn configurations and you're good to go. Here is a link with plenty of options to get this going. A few that come to mind of the top of my head are Artifactory and npm itself.

If none of these work for you, you can always just manually download npm packages from their Github repositories but this will be very tedious and time consuming (maybe you can write your custom package manager?) but I definitely don't recommend this route.

Faizan Virani
  • 134
  • 1
  • 11