Npm is not able to find a file in the AppData folder on windows, this is the error:
npm error code ENOENT
npm error syscall lstat
npm error path C:UsersHPAppDataRoamingnpm
npm error errno -4058
npm error enoent ENOENT: no such file or directory, lstat 'C:UsersHPAppDataRoamingnpm'
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:UsersHPAppDataLocalnpm-cache_logs2024-07-28T15_40_41_092Z-debug-0.log
I wrote npx create-react-react-app core-chat
in both cmd and powershell but the same error keeps popping up. I trying repairing and reinstalling Node.js from the installer, but it didn’t help.
I think I have to add node.js or npm to PATH in the environment variables but how do I do that if that’s the case?
Don’t ask me to switch to Linux alright?
1