What I'm trying to do is download packages with all their dependencies in order to transfer them to another computer that does not have an Internet connection, and install it there.
Thus, the script will look like this:
Download the package (in zip / tarball / any file) without installing it.
This downloaded file will include all its dependencies (correct versions and dependency dependencies).
Transfer the file to another computer.
Run npm install at the file location (optionally -g is important).
The package is installed with dependencies.
Happy tourist.
I feel that there must be an npm command to download and package files in this way.
I tried looking for a solution to this to no avail.
This is my first time using node, so I'm afraid that I am not studying it correctly, because there is a lack of knowledge about node / npm lingo.
l__flex__l
source share