DEV Community

Discussion on: Complete Introduction to Fullstack, Type-Safe GraphQL (feat. Next.js, Nexus, Prisma)

Collapse
 
nathanking profile image
Nathan King

I tried to run "npx nexus dev" at the start of the tutorial, I have recreated the project twice but I keep on getting this error:


4596 βœ• nexus:glocal The global Nexus CLI you invoked could not hand off to your project-local one becuase it wasn't on disk.

This can happen for example after you have cloned a fresh copy of your project from a remote repository.

Please install your dependencies and try your command again.

Location of the Nexus CLI you invoked: C:\Users\natha\Documents\Web Development\NEXT\nexus-prisma\node_modules\nexus\dist\cli\main.js

Location of your project-local Nexus CLI: C:\Users\natha\Documents\Web Development\NEXT\nexus-prisma\node_modules.bin\main.js

Collapse
 
godie99 profile image
Juan Diego

Try installing the versiΓ³n 0.26.0-next.5 of nexus

Collapse
 
hexrcs profile image
Xiaoru Li

Looks like this can happen on Windows. Are you using the native Windows cmd.exe or WSL?

Collapse
 
nathanking profile image
Nathan King • Edited

Windows cmd... I should probably migrate over to WSL

Thread Thread
 
hexrcs profile image
Xiaoru Li • Edited

Windows support is coming soon to Nexus! However, I'd still recommend you migrate over to WSL or use a Linux dev container of some kind, because most web dev tools and frameworks are created Unix-first.

Thread Thread
 
nathanking profile image
Nathan King

I'm in the process of downloading WSL 2 now 😊 I was going to make the switch anyway but just put it off. I'll try your tute again once it's set up πŸ‘

Thread Thread
 
nathanking profile image
Nathan King • Edited

Just to follow up, I decided to move to Linux and everything worked well!

Thanks so much for the amazing tutorial, it's awesome now that I've made it :P

(Maybe add a disclaimer for Windows users that they might have trouble, if you want)

Thread Thread
 
hexrcs profile image
Xiaoru Li

Nice, great to hear that! :D