Cannot find module 'node:path'

How do I resolve this error, my app is running fine lo


cally

2 Likes

Hi,

The node: syntax was intoduced in later versions of Node, out default version is a little old

You’re able to control the version of Node that your service uses by following this doc,
https://render.com/docs/node-version

John B
Render Support, UTC+1 :uk:

1 Like

Thank you for the response. I was able to start the server by specifying my node version, using the NODE_VERSION environment variable.