I have been told here that I could locally add globally installed packages using local-npm
I am aware that this is not a good practice, but as I may be forced to work offline for a few weeks I am desperate to get this set up so I do not face issues if I need any of my most commonly used packages.
I have already installed all the packages that I will need for the following weeks globally and I am now trying to understand how to use local-npm.
Am talking about front-end packages for me to use with react, such as redux, react-router, etc.
I have understood that I need to first:
- install
local-npmglobally (done) - run
npm-localin my project (the terminal does not recognize this command) I have also triedlocal-npm run startwith no success anyways. - set the registry to
npm set registry http://127.0.0.1:5080 - then install whatever a want
npm intall redux-thunk, for instance.
I am surely doing something wrong.
After a set the registry, turn the wiFi off and try to install npm install <package name> in my project nothing happens.
THanks and sorry for the dumb question as I am still a beginner to npm and still going to start the back-end journey.
P.S - I have read the Local-npm docs so please don't answer just pointing me there, but please give me a demo example, or something alike.