Skip to content

Instantly share code, notes, and snippets.

@frank-dspeed
Created June 10, 2022 10:02
Show Gist options
  • Save frank-dspeed/c72e79f75734b5d35587c31b05523132 to your computer and use it in GitHub Desktop.
Save frank-dspeed/c72e79f75734b5d35587c31b05523132 to your computer and use it in GitHub Desktop.
Replace PNPM or use it with NPM

It looks like this already may be possible, unless I'm misunderstanding the exact use case:

Generate a package-lock.json file without installing dependencies in node_modules: npm i --package-lock-only

I was only using pnpm for demo projects to save disk space because I needed a package-lock.json on the CI servers, but it looks like I can just generate it via npm while keeping the node_modules symlinked to a central store. I think this means I can now use pnpm for work projects too.

See https://stackoverflow.com/a/54910009/552792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment