You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
close
Home > FAQ > Can I change the version of node.js my project uses?
Can I change the version of node.js my project uses?
print icon

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.  

Got more questions? Check out our Community Forum!
Open 24/7, the forum is where Glitch makers help each other and show off all the rad apps that they have created. It's the friendliest community of coders on the Web!
Feedback
32 out of 52 found this helpful

scroll to top icon