-
Notifications
You must be signed in to change notification settings - Fork 577
installing prop-types manually appears to destroy react-scripts #2
Comments
This is related to lesson 3.6 - State Management - PropTypes To recreate,
At this point you should see a number of errors similar to the below. `Last login: Mon Jul 31 14:30:42 on ttys002
sh: react-scripts: command not found npm ERR! A complete log of this run can be found in: |
Can you also post your |
node --version create-react-app --version npm --version |
I have determined the issue is related to yarn and npm being both installed. When create-react-app is used to create the project and yarn is installed, it appears that it expects future installs to be performed using the yarn commands. Many students are installing yarn because of the video in Lesson 2.3. https://www.youtube.com/watch?time_continue=10&v=WmYSd7OEjMM However, follow up lessons provide the install of packages using npm commands. The causes a conflict of control between yarn and npm. Once I uninstalled yarn and created a new create-react-app project, I no longer received these issues. I believe a warning needs to be added to the lesson and youtube video mentioned above. |
any solution? |
@ardithastopalli using the command |
After manually installing prop-types as instructed the react-scripts folder appears to be one of many node modules removed automatically by npm for some reason.
So when npm start is ran from command line, the react-scripts gives an error as it cannot be found.
The text was updated successfully, but these errors were encountered: