-
Notifications
You must be signed in to change notification settings - Fork 980
Open
Description
If you are having an issue deploying on Netlify saying "bad option: --openssl-legacy-provider netlify", do the following:
1- change this on your package.json:
"scripts": {
"start": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts build",
}
//ADD this in your script tag instead above one
"scripts": {
"build": "react-scripts build --openssl-legacy-provider",
"start": "react-scripts start --openssl-legacy-provider",
}
2- Install: npm install --legacy-peer-deps
3- Create a new environment variable on Netlify:
Key name: NPM_FLAGS
Value: --legacy-peer-deps
Metadata
Metadata
Assignees
Labels
No labels