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

chore: add .nvmrc to match node version in Dockerfile #34307

Closed
wants to merge 1 commit into from

Conversation

brian-smith-tcril
Copy link
Contributor

Description

It is now standard practice to use .nvmrc files throughout the frontend repos to specify the appropriate node version. I intentionally used 16.14 instead of 16 because I encountered issues when running npm ci on node 16.20.

16.14 is the version specified in the Dockerfile

edx-platform/Dockerfile

Lines 116 to 118 in 1339313

# Install node and npm
RUN nodeenv /edx/app/edxapp/nodeenv --node=16.14.0 --prebuilt
RUN npm install -g [email protected]

Copy link
Contributor

@feanil feanil left a comment

Choose a reason for hiding this comment

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

Annoying that you can't leave a comment in the .nvmrc but maybe you could add the fact that it's 16.14 on purpose to the commit message as well? Not a blocker for merging since it's in the PR description but I like when kind of info is in the commit if it's not in a comment.

The use of 16.14 instead of 16 is intentional, as newer
versions of node 16 lead to dependency issues.
@brian-smith-tcril
Copy link
Contributor Author

Annoying that you can't leave a comment in the .nvmrc

Yeah, it seems it's quite strict (from the README)

The contents of a .nvmrc file must be the <version> (as described by nvm --help) followed by a newline. No trailing spaces are allowed, and the trailing newline is required.


Not a blocker for merging since it's in the PR description but I like when kind of info is in the commit if it's not in a comment.

a065013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants