Not sure what’s going on here as Ive just started using React. But when I use create-react-app and then npm start I get a huge error…
Ive tried to find solutions online but have not gotten a working solution yet. Seems that others are having this problem as well. any advise on what I can do to get this up and running?
No. I ran npm start inside the folder I was to be working in.
My username is Thomas. Im not sure why it would be searching there for a package.json file when I created the react app inside a specific work folder. Im so confused
after uninstalling node.js and reinstalling it and searching the web for almost 2 hrs
your comment tipped me off. I had to pwd in the terminal to see where I was. apparently, after create-react-app I have to cd into the folder? Its kind of tricky because it REALLY seems as if im inside the folder in vs code because you can see the src files inside and etc. but I guess the directory is still in the original working folder and not the newly created react folder with the new files inside
WILD.
Thats why it couldn’t npm start because I was in the original folder and not my app folder (even though I could see inside the app folder using vs code).
Yeah my folder was named React_Practice and by using : npx create-react-app “FOLDERNAME” (newly created folder) , I had created a new folder with the project files inside of that but, was still in the original React_Practice folder.
Problem is, in VS code you can peer inside the newly created folder even though that’s not your actual directory.
good thing I learned a few terminal commands. really saved me in this situation
Glad you were able to figure it out. I know it can be a bit dry and tedious, but it’s worth it to practice exploring your file system using only the command line terminal; once you get used to it, your efficiency will skyrocket.