简体   繁体   中英

How to install an NPM server instance on an offline machine?

I work in an offline.network and I want to be able to type

npm install <package-name>

and then, a request to a local server inside my.network will be sent to download the package. What is the best way I can implement it?

Thanks

You can setup local git server on your local.network and store your package on local git server then you can install the package by

npm install https://gitserverip/user_name/package.git 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM