Let's assume that I have a directory in my intranet, which contains a node_modules folder, which contains all the dependencies, which I need for my web-project to work. As far as I know, I can type something like (in the terminal from my project's root folder):
npm i "\\RepoComp\Repo\node_modules\bootstrap"
So, it will install bootstrap
package into my project. It's quite good, but I wouldn't like to install all of the packages, listed in my package.json
manually, I'd like to type just:
npm i <path-to-intranet-repo>
And I expect npm to gather all of the dependencies from this intranet location. How can I achieve this?
PS: Actually, what I try to achieve - is placing all dependencies to remote folder in intranet location, so all the developers in my team can access needed packages from there, without internet connection. Is it possible? However, as I found from npm-debug.log, it attempts to connect to registry.npmjs.org, while trying to install packages through npm --prefix "\\RepoComp\Repo\node_modules\" install
command.