What is the equivalent of Python's pip freeze
to create a snapshot list of all the npm modules being used and their current versions? And Python's pip install -r /path/to/requirements.txt
so the environment can be reproduced.
On a side note, Meteor.js automatically tracks all packages in .meteor/packages.json
and ensures those dependencies whenever a change is made to that file, so I believe it can be done on Node.js.
npm shrinkwrap
should do it. here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.