{
  "id": 21749755,
  "title": "`pnpm dev` fails because of `sharp`: the warning that blocks everything",
  "url": "https://urgent.news/2026/11/25/pnpm-dev-echoue-a-cause-de-sharp-lavertissement-qui-bloque-tout",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-25T07:00:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/amineaffif/pnpm-dev-echoue-a-cause-de-sharp-lavertissement-qui-bloque-tout-16g1"
  },
  "original_language": "fr",
  "account": "A developer in Paris identified a way to resolve an error where the command `pnpm dev` fails due to the `[ERR_PNPM_IGNORED_BUILDS]` error. Recent versions of pnpm now require explicit approval to execute dependency installation scripts, which prevented tools like the image optimizer `sharp` from running their native binaries. The issue can be fixed by setting `allowBuilds: sharp: true` in the `pnpm-workspace.yaml` file or by running `pnpm approve-builds`. It is recommended to approve packages individually rather than using `dangerouslyAllowAllBuilds` to maintain security.",
  "summary": "I run pnpm dev and nothing starts. No error in my code. Just this: [ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: sharp@0.34.5 Run \"pnpm approve-builds\" to pick which dependencies should be allowed to run scripts. [ERROR] Command failed with exit code 1: pnpm install Before running the script, pnpm checks the status of the dependencies. This check was failing, so the server wouldn't start…",
  "key_points": [
    "pnpm dev fails to start due to sharp script error",
    "sharp script blocked launch, requiring approval",
    "Setting allowBuilds : sharp : true resolves issue"
  ],
  "editors_take": "The requirement for explicit script approval shifts the burden of security onto developers, turning automated dependency installations into a manual gatekeeping process to prevent unauthorized code execution.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}