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)