rotx
Initiating Project Fails
Hi, I followed guide on https://nuxt.com/docs/getting-started/installation and got the following error while it was installing.
I tried clearing NPM cache but it didn't seem to work.
npx nuxi@latest init testing-project
Need to install the following packages:
nuxi@3.11.1
Ok to proceed? (y) y
✔ Which package manager would you like to use?
npm
◐ Installing dependencies... 3:46:21 PM
> postinstall
> nuxt prepare
[3:48:05 PM] ERROR Cannot find module 'C:\Users\UsernameWasHere\Documents\GitHub\testing-project\node_modules\@nuxt\devtools\dist\runtime\shared\hooks' imported from C:\Users\UsernameWasHere\Documents\GitHub\testing-project\node_modules\@nuxt\devtools\dist\chunks\module-main.mjs
at finalizeResolution (node:internal/modules/esm/resolve:264:11)
at moduleResolve (node:internal/modules/esm/resolve:917:10)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
[3:48:05 PM] ERROR Cannot find module 'C:\Users\UsernameWasHere\Documents\GitHub\testing-project\node_modules\@nuxt\devtools\dist\runtime\shared\hooks' imported from C:\Users\UsernameWasHere\Documents\GitHub\testing-project\node_modules\@nuxt\devtools\dist\chunks\module-main.mjs
npm ERR! code 1
npm ERR! path C:\Users\UsernameWasHere\Documents\GitHub\testing-project
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c nuxt prepare
npm ERR! A complete log of this run can be found in: C:\Users\UsernameWasHere\AppData\Local\npm-cache\_logs\2024-05-10T13_46_22_348Z-debug-0.log
ERROR Error: Command failed with exit code 1: npm install
npx nuxi@latest init testing-project
Need to install the following packages:
nuxi@3.11.1
Ok to proceed? (y) y
✔ Which package manager would you like to use?
npm
◐ Installing dependencies... 3:46:21 PM
> postinstall
> nuxt prepare
[3:48:05 PM] ERROR Cannot find module 'C:\Users\UsernameWasHere\Documents\GitHub\testing-project\node_modules\@nuxt\devtools\dist\runtime\shared\hooks' imported from C:\Users\UsernameWasHere\Documents\GitHub\testing-project\node_modules\@nuxt\devtools\dist\chunks\module-main.mjs
at finalizeResolution (node:internal/modules/esm/resolve:264:11)
at moduleResolve (node:internal/modules/esm/resolve:917:10)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
[3:48:05 PM] ERROR Cannot find module 'C:\Users\UsernameWasHere\Documents\GitHub\testing-project\node_modules\@nuxt\devtools\dist\runtime\shared\hooks' imported from C:\Users\UsernameWasHere\Documents\GitHub\testing-project\node_modules\@nuxt\devtools\dist\chunks\module-main.mjs
npm ERR! code 1
npm ERR! path C:\Users\UsernameWasHere\Documents\GitHub\testing-project
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c nuxt prepare
npm ERR! A complete log of this run can be found in: C:\Users\UsernameWasHere\AppData\Local\npm-cache\_logs\2024-05-10T13_46_22_348Z-debug-0.log
ERROR Error: Command failed with exit code 1: npm install
7 replies