简体   繁体   中英

Setting up Nodejs 5.10.1 on Openshift

I run a Discord bot. I am using Nodejs on Openshift. I was using their latest cartridge until I realized NodeJS 6.3 has an out of bounds bug.

I have been trying to use an earlier version of Nodejs (like 5.10.1), but I don't know how to set up the application in their cartridge. Does anyone know how to go through the setup process?

According to openshift cartridge nodejs readme , you have to set environment variables NODE_VERSION_URL & NPM_VERSION_URL if you want custom version of node/npm :

NODE_VERSION_URL=https://semver.io/node/resolve/4.3.2
NPM_VERSION_URL=https://semver.io/npm/resolve/3.6.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM