skip to Main Content

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


  1. 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

    Login or Signup to reply.
  2. This might have multiple reasons
    You can try some simple and basic steps

       1.permission issues can prevent npm from accessing certain directories.    
           Try to run the command in administrative mode
       2.There might be a cache issue    
            Try npm cache clean --force
       3.Try reinstaling create-react-app
    

    This might help

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search