Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
netlify-plugin-playwright-cache
Advanced tools
Persist the Playwright executables between Netlify builds.
Persist the Playwright executable between Netlify builds.
netlify-plugin-playwright-cache
When you install playwright-chromium
, it downloads Chromium executables to a cache folder (not node_modules
). Netlify does not cache this folder between builds, but caches node_modules
. This leads to unsuccessful builds with the following error like this:
11:33:48 PM: [: Executable doesn't exist at /opt/buildhome/.cache/ms-playwright/chromium-1019/chrome-linux/chrome
╔═════════════════════════════════════════════════════════════════════════╗
11:33:48 PM: ║ Looks like Playwright Test or Playwright was just installed or updated. ║
11:33:48 PM: ║ Please run the following command to download new browsers: ║
11:33:48 PM: ║ ║
11:33:48 PM: ║ npx playwright install ║
11:33:48 PM: ║ ║
11:33:48 PM: ║ <3 Playwright Team ║
11:33:48 PM: ╚═════════════════════════════════════════════════════════════════════════╝
This plugins fixes the above issue by caching the Playwright executables (Chromium, ffmpeg...) between builds.
You can install as a dependency of your project:
npm install --save-dev netlify-plugin-playwright-cache
# Or
yarn add -D netlify-plugin-playwright-cache
# Or
pnpm add -D netlify-plugin-playwright-cache
Installation via the Netlify UI is coming soon.
Update netlify.toml
to include the plugin:
[[plugins]]
package = "netlify-plugin-playwright-cache"
Remember to Clear cache and retry deploy after adding the plugin.
FAQs
Persist the Playwright executables between Netlify builds.
We found that netlify-plugin-playwright-cache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.