'Getting this error after creating a React Native Project and doing npm start

I am currently learning React Native and going through this tutorial: https://www.youtube.com/watch?v=0-S5a0eXPoc

However, upon project creation I tried to do npm start. However I got the following error:

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\MYNAME\PATH TO FILE\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\MYNAME\PATH TO FILE\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\MYNAME\AppData\Local\npm-cache\_logs\2022-01-21T00_26_11_723Z-debug.log

I have no idea what's wrong here/what I did incorrectly. I tried another stack overflow question and they said to delete package-lock.json and try again, which I did but got the same error. So how do I fix this? What's the problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source