Multiple Versions of Node

Booking flow needs older version of node until we can upgrade and OLCI needs the current version otherwise the DELETE calls fail, here's how we can use multiple versions:

Refer: https://davidwalsh.name/upgrade-nodejs
Refer: https://github.com/tj/n

# node -v which is v0.10.37 for booking flow, EAS is using 4 and booking flow works
$ sudo npm cache clean -f
$ sudo npm install -g n
$ sudo n 0.10.37
$ sudo n stable
# Now you switch between versions but running, selecting and hitting enter
$ sudo n

Leave a Reply