nodejs-custom-version-openshift icon indicating copy to clipboard operation
nodejs-custom-version-openshift copied to clipboard

Version somehow installed, but not used

Open ghost opened this issue 12 years ago • 2 comments

I followed the instructions and pushed to Openshift. When I ran node -v after the push however, it said it uses node 10.25 even though I specified 10.29.

This is my terminal output:

remote: Building NodeJS cartridge remote: npm info it worked if it ends with ok remote: npm info using [email protected] remote: npm info using [email protected] remote: npm info preinstall [email protected] remote: npm info build /var/lib/openshift/541b38b35973cae7d900030e/app-root/runtime/repo remote: npm info linkStuff [email protected] remote: npm info install [email protected] remote: npm info postinstall [email protected] remote: npm info prepublish [email protected] remote: npm info ok remote: Preparing build for deployment remote: Deployment id is 5b53fccc remote: Activating deployment remote: Starting MongoDB cartridge remote: remote: - pre_start_nodejs: Adding Node.js version 0.10.29 binaries to path remote: - PATH set to include custom node version (0.10.29) from remote: /var/lib/openshift/541b38b35973cae7d900030e/app-root/data//node-v0.10.29-linux-x64/bin remote: PATH = /var/lib/openshift/541b38b35973cae7d900030e/app-root/data//node-v0.10.29-linux-x64/bin:/var/lib/openshift/541b38b35973cae7d900030e/app-root/runtime/repo/node_modules/.bin:/var/lib/openshift/541b38b35973cae7d900030e//.node_modules/.bin:/opt/rh/nodejs010/root/usr/bin:/opt/rh/mongodb24/root/usr/bin:/bin:/usr/bin:/usr/sbin remote: Starting NodeJS cartridge

Somehow node 10.29 was installed but then not used I suppose.

ghost avatar Sep 18 '14 20:09 ghost

@smalldelta , sorry for the delay (am missing github notifications somehow). So if you ssh into your app: ssh 541b38b35973cae7d900030e@$name-$domain.rhcloud.com and run node -v what version does it show? Do you have something in your package.json scripts that's using a different node version? Or then maybe one of the hooks (in this specific case .openshift/action_hooks/*build) was changed? Need a few more details ...

Just as an fyi, I just tried the instructions at https://github.com/ramr/nodejs-custom-version-openshift and created a new sample app: http://nodetest-ramr.rhcloud.com/env and it shows the correct version that I added to the .openshift/markers/NODEJS_VERSION file and commited (version 0.10.32). And I also pushed a sample commit to it and checked.

ramr avatar Sep 24 '14 17:09 ramr

@smalldelta haven't heard back - is this still an issue? It works for me following the instructions. Please reopen if you still have problems.

ramr avatar Nov 03 '14 18:11 ramr