scripts does not work in todo_list/package.json
Opened this issue · 3 comments
arasnuri commented
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
}
the above part does not allow the project to start in a Skill Network Labs environment or on macOS.
i had to change it to :
"scripts": {
"start": "export NODE_OPTIONS=--openssl-legacy-provider && react-scripts start",
"build": "export NODE_OPTIONS=--openssl-legacy-provider && react-scripts build",
}
this is only for start and build.
the error i get when i do not make the changes, trying npm start returns the error in the attachments
DylanKarimagoko commented
export NODE_OPTIONS=--openssl-legacy-provider
MrWil95 commented
arunakamara commented
Ensure that you're in the right directory, then run the "npm start " command.