reactjssanity

Sanity start command not finding the module 'node:path"


So I am running a react application and trying to install a sanity studio along with it. However after typing

npm create sanity@latest

naming my sanity folder skwstudio

then commanding cd skwstudio and sanity start

I get
` Error: Cannot find module 'node:path' Require stack:

I have tried deleting node_modules and commanding npm install and sanity install but I get the same error. Any idea as to what is going on?


Solution

  • It looks like my version of node was outdated. Upgrading it fixed the issue.