Seeking a way to organize dependencies from the NPM registry in a Nexus NPM proxy repository for any JavaScript project without having to run npm install
or yarn install
due to potential C/C++ compilation requirements for NodeJS C/C++ add-ons.
One method could involve parsing the package-lock.json/yarn.lock file and executing npm pack <dependency>
for each dependency to fetch and store the necessary tarballs locally, eliminating the need to compile on every install.
Are there more sophisticated solutions available for managing dependencies using npm or yarn?