Skip to content
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

Deployment: Add a note about PaaS default nodejs version #28720

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

Crn0
Copy link
Contributor

@Crn0 Crn0 commented Aug 30, 2024

Because

depending on the host provider the student uses, the default version might not be the LTS version. Adding a note about this can help students avoid frustrating debugging sessions when using Nodejs features that are not supported by earlier versions.

This PR

  • Add a note about the default Nodejs version and the use of features that are not supported by earlier versions.

Issue

Closes #28621

Additional Information

Pull Request Requirements

  • I have thoroughly read and understand The Odin Project curriculum contributing guide
  • The title of this PR follows the location of change: brief description of change format, e.g. Intro to HTML and CSS lesson: Fix link text
  • The Because section summarizes the reason for this PR
  • The This PR section has a bullet point list describing the changes in this PR
  • If this PR addresses an open issue, it is linked in the Issue section
  • If any lesson files are included in this PR, they have been previewed with the Markdown preview tool to ensure it is formatted correctly
  • If any lesson files are included in this PR, they follow the Layout Style Guide

@github-actions github-actions bot added the Content: NodeJS Involves the NodeJS course label Aug 30, 2024
Copy link
Contributor

@MaoShizhong MaoShizhong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@@ -237,6 +237,12 @@ In most cases, you'll be running into errors that thousands of developers have e

There are two stages of the deployment process where you are most likely to encounter problems. These are during deployment and right after.

<div class="lesson-note" markdown="1">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: Look into making warning note boxes more visually distinct from standard note boxes.

Suggested change
<div class="lesson-note" markdown="1">
<div class="lesson-note lesson-note--warning" markdown="1">

@@ -237,6 +237,12 @@ In most cases, you'll be running into errors that thousands of developers have e

There are two stages of the deployment process where you are most likely to encounter problems. These are during deployment and right after.

<div class="lesson-note" markdown="1">

Depending on the host provider you use, the default NodeJs engine version might not be the LTS version. Additionally, depending on the NodeJs features you’re using, you might need to specify the NodeJs version to utilize those features.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General suggestions for wording of the point, plus a nice link to how to actually specify compatible versions.

Plus, instead of "NodeJs" or "NodeJS", it should either be "Node.js" or just "Node" for consistency across documentation I think. I don't mind either and have used "Node" in the suggestion below. Whatever we end up using, would you mind also amending any other mentions of "NodeJS" in the lesson if there are any?

Suggested change
Depending on the host provider you use, the default NodeJs engine version might not be the LTS version. Additionally, depending on the NodeJs features you’re using, you might need to specify the NodeJs version to utilize those features.
#### Node version compatibility
Depending on the host provider you use, the supported Node versions and default selected version may differ. You can refer to the providers' documentation for more information on what is supported and selected, and depending on what features you use in your code, you may need to [specify what Node versions your project is compatible with in your `package.json`](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#engines).

@MaoShizhong MaoShizhong merged commit b07481f into TheOdinProject:main Sep 3, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content: NodeJS Involves the NodeJS course
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deployment: PaaS default nodejs version
2 participants