https://www.codecademy.com/journeys/front-end-engineer/paths/fecj-22-front-end-development/tracks/fecj-22-react-part-ii/modules/wdcp-22-react-router-4945a591-acbc-4370-a8a4-6a7d29690fcf/projects/adopt-a-pet-react-router-v6
Hi guys, in this project you download the zip, unzip it ( i unzipped it into a new folder under codecademy) and then opened that folder in VSCode ran npm install and then tried to run npm start. Npm Start runs an error saying script start not found. I went to the package.json file and ran debug on scripts and it said react-scripts not found so i installed react-scripts manually. now if I run npm start in the normal terminal it still runs an error and says the script start isn’t found. However now If I go back to the package.json file and run debug again on start it will now say compilled sucessfully with the debugger attached. However if I just open a new terminal without the debugger and run npm startit still says missing script start.
I has an issue with scripts in another project I put in vs code from a downloaded zip…Is this an issue for some reason? Is there other steps I need to do first before inserting the files into vscode?
Any other ideas why this happens…like an old version of something that I need to update maybe?
alright If anyone else sees this. The problem was that I was using powershell terminal to install and run start instead of bash.
You can run npm on powershell or bash, but for each one it can only see its own installation. For example, if I install node on my powershell, and try to run it from git bash, it will not know what to do. Conversely, if I install node on git bash, but not on powershell, and try to run from powershell, it will not know what to do.
Added to this, you should have your versioning correct (if your project requires certain dependencies etc.) so that it’s consistent. Either powershell or bash work, I would just pick one and stick with it.
Ah okay that makes sense I think codecademy originally had me download node in bash. I think I have downloaded it on powershell as well since then?
It seems like Codecademy recommended bash so many I’ll just stick to that.