DEV Community

Cover image for NPM run scripts error fix
Rainec
Rainec

Posted on

NPM run scripts error fix

Encountering issues on running npm scripts? Here's a fix if you found your issues below:

npm error missing script: "server"

Try adding --openssl-legacy-provider on "start" and "build" under "scripts" field in the package.json file

"scripts": {
    "start": "react-scripts --openssl-legacy-provider start",
    "build": "react-scripts --openssl-legacy-provider build"
  }
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more