We know that folks have been asking us to provide newer versions of Node for use with Glitch. Today, we have some exciting news to share with you! You can now use Node 14 on Glitch!
This update does mean that we had to make a few changes that you should be aware of…
Here’s the rundown:
We have updated our containers to include Node 14!
If you have a project that uses Node 14, packages will be installed via npm (instead of pnpm).
If you have a project that uses Node 14 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 Node 12 or older, packages will still be installed via pnpm, unless you have specifically opted into using npm in the past. Please continue to use this method of installation for projects that use an older version of Node (Node 12, 10, Node 8, etc).
And here’s a little more info for those of you that are saying, “wait, wat?!”
We acknowledge that previously, the solution to most install issues on Glitch was to run the command, enable-pnpm. The reason was that using this method resulted in a faster and more efficient installation of packages. With this update, Node 14 always uses npm. Rest assured that neither pnpm’s nor npm’s node_modules folders count against your disk usage limit!
Edit 12/21/2020: Hi, Jenn here! I’ve updated this post to reflect some changes we made as we rolled back a bit due to users hitting issues, as opposed to making an entirely new thread. What is in this post is the latest information.
@tasha, I would love it if you guys announced this on the main website too, most Glitch users don’t view the forum that often and since this is quite important it could get missed by many.
ah I see, but the problem is npm installation is slower, and I really liked pnpm because it installs things faster, so is there any possible way to manually enable pnpm on node 12 and above?
Yeah, i have projects for it, i’ve installed sqlite3 there, but if i change my code they’re re-installing. Imagine installing sqlite3 is taking so much time.
EDIT: i’m using watch.json, to make my project stayin if i change my main files. but if i run refresh in terminal, they’re installing
Hey folks, I’m bumping this thread because I’ve updated the original post to reflect the latest on these changes. Users have experience slow start/build times so we rolled back some of the changes - basically, we only require Node 14 to use npm, not also Node 12.
If you experience issues with your projects that you feel may be a consequence of these changes, please send the name of the project and what error you see to support@glitch.com