Yes, you can do so by updating the engines field specified in the package.json project file.
- Currently, Glitch supports node.js versions 6.17.1 through 16.6.1
- In the future, Glitch will support the latest minor (point) release of each major LTS (even-numbered) node.js version.
In your package.json, you can specify the major version of Node you'd like to use as follows:
"engines": { "node": "16.x" }
Here are some other important things to know about using Node with Glitch:
-
If you have a project that uses Node 14 or Node 16, packages will be installed via npm.
-
If you have a project that uses Node 14 or Node 16 and it is currently getting stuck in an install loop, open the project terminal and run the command,
enable-npm
. -
If you have a project that uses a version of Node that is older than Node 14 (Node 12, 10, Node 8, etc), packages will still be installed via pnpm, unless you have specifically opted into using npm in the past.