There is a package called onmi in npm This is what is written in its description
Offline Node Module installer - cli tool for installing Node modules and their dependencies from any project or pre-installed local modules, without an internet connection