skip to Main Content
Error: Cannot find module 'F:vitebinvite.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)
    at Function.Module._load (node:internal/modules/cjs/loader:769:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
npm ERR! code 1
npm ERR! path F:A. WEB DESIGN & DEVELOPMENTMy ProjectsSAIMUMsaimum
npm ERR! command failed
npm ERR! command C:WINDOWSsystem32cmd.exe /d /s /c vite

npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersataurAppDataLocalnpm-cache_logs2022-10-31T19_15_47_188Z-debug.log

npm install worked correctly, but npm run dev raise this errro. my project is new and the laravel version is Laravel v9.37.0 (PHP v8.1.10)

2

Answers


  1. Please, you don’t name your projects using special characters (& etc.).
    Your path: F:A. WEB DESIGN & DEVELOPMENTMy ProjectsSAIMUMsaimum and & contains.

    Login or Signup to reply.
  2. make sure you’re running the latest version of Node.js on your machine. I had this happen and my node version was 12. I believe it requires either 14 or 16 at minimum

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