Reputation: 1066
I want to update my app node version deployed to Heroku Currently it is 0.10.40 on Heroku app
To change to my desired version I mainpulated the package.json file as:
{
"name": "myapp",
"private": true,
"engines": {
"node": "4.8.4"
},
"scripts": {
"start": "meteor run"
},
"dependencies": {
"meteor-node-stubs": "~0.2.0"
}
}
And then deployed my code to heroku app. But still while checking the version through heroku CLI
heroku run node -v -a myapp
the version is not updated and it is still using the older one.
Any help !
Upvotes: 1
Views: 1834
Reputation: 179
for a windows user: First Uninstall the previous nodejs from Program Files then download and install latest node https://nodejs.org/en/
Upvotes: 0
Reputation: 53185
meteor run
command that you use for development. You can also find details on the Meteor Guide for Deployment."engines"
field in your package.json
file and letting Heroku use your Meteor project as a Node.js app, it should have adjusted the Node version accordingly. But there are several potential mistakes that might explain why it is not. E.g. the new version of your package.json
file not being properly committed, etc. Your current question does not share enough details to tell more about what could be the exact reason.Upvotes: 4