i’ve been trying to install reactjs to visual studio code after alot of troubleshooting i can’t seem to get it to install probably just wondering if anyone has had this issue and knows how to fix it
PS C:UsersPCnameDesktopReactJS> npx create-react-app react-learning
npm error code ENOENT
npm error syscall lstat
npm error path C:UsersPCnameAppDataRoamingnpm
npm error errno -4058
npm error enoent ENOENT: no such file or directory, lstat ‘C:UsersPCnameAppDataRoamingnpm’
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: C:UsersPCnameAppDataLocalnpm-cache_logs2024-08-28T10_03_40_865Z-debug-0.log
PS C:UsersPCnameDesktopReactJS>
i’ve tried uninstalling and re-installing everything that connects to this icluding deleting any files that wasn’t unistalled i confirm that everything was done correctly, i’ve checked all updates and to confirm i did it correctly i followed step by step guides i could find but still no cigar
2
Answers
Make sure to be inside a folder you have write access to.
Also are you sure that you are running the command:
npx create-react-app react-learning
This might have multiple reasons
You can try some simple and basic steps
This might help