skip to Main Content

Please help me guys when I execute npm run dev I get this error :

failed to load config from C:WindowsSystem32react-appvite.config.ts
error when starting dev server:
Error: EPERM: operation not permitted, open ‘C:WindowsSystem32react-appvite.config.ts.timestamp-1690288065442-391efff42da45.mjs’

i think my problem seems to be related to the Vite configuration file (vite.config.ts). Specifically, Vite is failing to load the configuration file, and it’s encountering a permission issue when trying to open another file related to the configuration.

2

Answers


  1. Maybe the problem is connected with the directory from which you try to run the program. Try this:

    cd C:WindowsSystem32react-app 
    npm run dev
    
    Login or Signup to reply.
  2. The problem seems to appear because your project is in System32 folder, which is not the right place for your project files.

    Move the project to different path other than (System32).

    Install dependencies:

    npm install
    

    If the issue still persists then clear cache and retry using :

    vite clear && npm run dev
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search