Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One option to make it a little safer is to add ignore-scripts=true to a .npmrc file in your project root. Lifestyle scripts then won't run automatically. It's not as nice as Pnpm or Bun, though, since this also prevents your own postinstall scripts from running (not just those of dependencies), and there's no way to whitelist trusted packages.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: