0
votes

Working on my React portfolio project and encountered this message on the terminal. I do have package.json file in my folder. Not sure why it popped out. I have installed yarn and npx [email protected] course2portfolio--->(my project folder name)

Here is the message shown in the terminal on VS code: Claires-MacBook-Pro:course2portfolio ginobili20g$ yarn start yarn run v1.22.10 error Couldn't find a package.json file in "/Users/ginobili20g/Desktop/course2portfolio" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Claires-MacBook-Pro:course2portfolio ginobili20g$

1
can u post image of your folder structure - Sushilzzz
can you elaborate plz? - miraj
Did you cd into the app root directory after creating it? You have to run that command in the directory package.jsin is in. - Dan Oswalt
@DanOswalt I didn't recall doing that. Very new to coding still. I was following along my bootcamp installation process. - Claire
Do you see a folder named course2portfolio inside the /Users/ginobili20g/Desktop/course2portfolio folder? - maazadeeb

1 Answers

0
votes

by looking at your image, I realized that u opened the wrong folder in vs code, pls open course2portfolio folder, thats why the error... you need to open course2portfolio and then click on open....