$ npm install npm-lockfile
Safely generate an npm lockfile and output it to the filename of your choice.