问题
I have an Artifactory server that is not connected to the internet and can't be. I have a React project that I need to be able to build using said Artifactory server. How can I download/pack/tar all of my project dependencies and deploy them to Artifactory?
回答1:
you must have an internet connection to retrieve the node modules dependencies. once done, you can list all packages and their resolved url
find node_modules \
-type f \
-name package.json \
-exec jq -r '._resolved' {} \; \
| sort \
| uniq
then download each of which and upload it to artifactory
来源:https://stackoverflow.com/questions/62927620/how-to-offline-my-node-dependencies-to-deploy-to-artifactory