-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Update the package.json files so that correct Node version gets selected for the Nodejs sample apps #197
Conversation
…selected for these Nodejs apps Signed-off-by: Akash Nayak <akash19nayak@gmail.com>
Thanks for making a pull request! 😃 |
If no node version is mentioned in the package.json file, Move2Kube will select the default node version which will be the latest version from the nodeversions.yaml. Our sample nodejs applications aren't compatible with node v16 and above, so I have added the node version constraint to the package.json file. |
The NodeJS sample in language-platforms is compatible, we run end-to-end tests which deploy them on a cluster and return 200 OK. Also even if it is true that they can't run with the latest NodeJS then that is a bug that needs to be fixed. The sample apps are simple static web servers for the most part, there is no reason to have complex version restrictions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there are issues with making these samples work with Node 18 and beyond we should fix those bugs. Adding the version constraint does not make sense for such simple static web server samples.
I deployed the NodeJS sample with Node 16 ( |
With That's why I added the version restriction to the package.json, so that if someone tries to deploy the sample on OpenShift cluster it should not fail to run. |
Looking at the error, it's just a common permissions issue that people face: We can fix it by adding the proper |
Fixed during session over Webex. |
Signed-off-by: Akash Nayak akash19nayak@gmail.com