DEV Community

Md Shoriful Islam
Md Shoriful Islam

Posted on

Error on Node JS npm/npx project creating with vite/react js "node:internal/modules/cjs/loader:1205 throw err"

https://stackoverflow.com/q/78397311/6546572

Currently i'm running node -v v22.0.0 Here I'm creating a new React Js porject. but when initiating the project with vite technology, it errors like this in the terminal.

npm create vite@latest
node:internal/modules/cjs/loader:1205
  throw err
  ^

Error: Cannot find module 'C:\Users\rvdas\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js'       
    at Module._resolveFilename (node:internal/modules/cjs/loader:1202:15)
    at Module._load (node:internal/modules/cjs/loader:1027:27)
    at Function.executeUserEntryPoint [as

Top comments (0)