All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

@gkiely/safe-install: npm Package for Trusted Dependency Installs with Locked-Down Lifecycle Scripts

By

gkiely

20d ago· 2 min readen

Summary

@gkiely/safe-install is an npm package that allows developers to run npm installs with dependency lifecycle scripts disabled by default, then selectively rebuild only explicitly trusted packages. It addresses the security risk of npm lifecycle scripts (postinstall, install, preinstall) that can run arbitrary code during installation, while still supporting packages that legitimately need these scripts for building native bindings or downloading binaries. The package keeps default installs locked down and moves script execution to a controlled, trust-based workflow.

Key quotes

· 3 pulled
Run npm installs with dependency lifecycle scripts disabled by default, then rebuild only the packages you explicitly trust.
npm lifecycle scripts can run arbitrary code during install.
This package keeps the default install locked down and moves script execution to a controlled, trust-based workflow.
Snippet from the RSS feed
Run npm installs with lifecycle scripts disabled, then rebuild explicitly trusted dependencies.. Latest version: 0.1.9, last published: 20 minutes ago. Start using @gkiely/safe-install in your project by running `npm i @gkiely/safe-install`. There are no

You might also wanna read