ibm-developer-skills-network/uqwxd-react_labs

scripts does not work in todo_list/package.json

Opened this issue · 3 comments

"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
Screenshot 2023-12-17 at 14 11 16
Screenshot 2023-12-17 at 14 13 59

export NODE_OPTIONS=--openssl-legacy-provider

ran command export NODE_OPTIONS=--openssl-legacy-provider but also receiving err missing script: "start"

Screenshot 2024-04-30 103503

Ensure that you're in the right directory, then run the "npm start " command.