I'm more familiar with the Python ecosystem at this point and have a question about how I can do something with npm
that I'm used to doing with pip
.
Let's say I have a wheel for a particular Python package, as well as a wheel file for each of the Python package's dependencies. And let's say I have all these wheel files in a folder called /path/to/wheel/files
. To install this package and all of its dependencies, I could run something like pip install /path/to/wheel/files/*.whl --no-deps
, where --no-deps
keeps me from having to install the various dependencies in the proper order.
Does npm
have an equivalent to this? I'm using npm-offline-packager to create a tarball that contains a Node package (as its own tarball) and all of its dependencies (as their own tarballs). I know I can tell npm install
to install a particular tarball. However, when I do this, it tries pulling in the required dependencies from the online NPM registry instead of pulling in the dependencies from the tarballs I already have.
Ideally, I'd like npm install
to use the tarballs to add the main package to my project's package.json
while adding the package's dependencies to my project's package-lock.json
. And of course, I'd also like the main package and all its dependencies to be installed to my project's node_modules
directory as well.
TL;DR Does npm
have something equivalent to pip install /path/to/wheel/files/*.whl --no-deps
?