Can't build Ionic 5 (angular) app using Node.js v12.22.12 or v12.22.6

24 views Asked by At

I have a really old app that I need to run and I'm using nvm so I can use older versions of node.js and ionic. They're really old dependencies and I just need it to run in a dev environment.

The error I get from Git Bash is:

$ ionic serve
ERR: Your Node.js version is v12.22.12. Node.js 12 reached end-of-life on 2022-04-30 and is no longer supported. Please update to the latest Node LTS version.

How can I work around this error? They are a bunch of dependencies which would not accept later Node.js versions.

I found this similar problem: Can no longer build Ionic 3 (angular) app using node 12 as of May 2023 But all the answers did not help.

1

There are 1 answers

1
Konstantin Kirilov On

Installed node.js version 16 (nvm install 16) and it seems to be running fine for now.