Urgent.News

What's breaking now, across hundreds of outlets.

Tech

`pnpm dev` fails because of `sharp`: the warning that blocks everything

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…

Translated from French Read in French

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.

Summarised by urgent.news, not translated. Machine-written; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

How we plan a platform before writing the first line of code

Most projects that go wrong do not fail in the code. They fail in a meeting months earlier, when everyone nodded at a sentence that meant something different to each person.

  • Establish a concise goal sentence for the platform
  • Identify key users and their needs, devices, and interaction frequency
  • Draft a scope document detailing included and excluded features

AWS Lambda Doubles Its Timeout to 30 Minutes After Eight Years at 15

AWS has raised the maximum timeout of on-demand Lambda Event Functions from 15 to 30 minutes in all commercial regions, with no opt-in and no new pricing. The limit had stood since 2018.

  • AWS Lambda doubles its maximum execution time from 15 to 30 minutes.
  • Change effective since August 2017, impacting synchronous and asynchronous invocations.
  • Longer tasks advised to use AWS Step Functions for better manageability.

More from Wednesday 25 November →