Socket
Socket
Sign inDemoInstall

@lavamoat/preinstall-always-fail

Package Overview
Dependencies
Maintainers
6
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lavamoat/preinstall-always-fail

Worried about accidentally running `yarn` or `npm` with script hooks enabled such as `preinstall` or `postinstall`?


Version published
Weekly downloads
3.8K
decreased by-29.57%
Maintainers
6
Weekly downloads
 
Created
Source

Pre-Install Always Fail

Worried about accidentally running yarn or npm with script hooks enabled such as preinstall or postinstall?

Adding this package to a project mitigates the likelihood of running any lifecycle scripts by throwing an error during the preinstall script execution.

Install

yarn add @lavamoat/preinstall-always-fail
npm i @lavamoat/preinstall-always-fail

Usage

If the --ignore-scripts [1] flag is missing, running yarn or npm i will fail. Enable the flag and use in conjunction with Lavamoat's allow-scripts to manually whitelist packages running scripts.

References

[1]: https://docs.npmjs.com/cli/v7/commands/npm-install#ignore-scripts

FAQs

Package last updated on 14 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc