Pages can't seem install nodejs
Is there a problem with pages, because it can't seem to install nodejs
4 Replies
Nodejs download server is just unstable. If you set your nodejs version to the latest version of a major, i.e
17
and are using Build Image v2, it should use the preinstalled one rather then trying to download itis there a way to set it to use 18?
thanks btw
Yea, you can just set
18
in environment variable NODE_VERSION
, or use the .nvmrc
.node-version
files, iirc the files have priorty. Any of the latest versions are supported with Pages: https://developers.cloudflare.com/pages/platform/language-support-and-tools/Language support and tools · Cloudflare Pages docs
Cloudflare Pages’ build environment has broad support for a variety of languages, such as Ruby, Node.js, Python, PHP, and Go.
Thank you!