Permanent solution to react-scripts: command not found

Viewed 14

After I run npm start I get the following error on my personal laptop (M1 Mac on 12.4 Monterey) for any React project I run. As an example, this one


> react-scripts start

sh: react-scripts: command not found

There are several other public question with resolutions for individual apps that have allowed me to get this up and running using yarn or manually installing react-scripts on each repo. However, this is really a solution to the symptom and not the problem in my opinion.

Running these same apps on my work laptop (Intel Mac on 12.4 Monterey) I run into no issues and don't need to run any extra commands. I am hoping to find the same solution on my personal device.

Does anyone know why I need to go through these extra steps, and a solution to have a simplified experience on every new app that is built in the future?

0 Answers
Related