-
Notifications
You must be signed in to change notification settings - Fork 29
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
Update Node to version 14 #1036
Conversation
✅ Deploy Preview for blissful-goodall-fa23f6 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
COPY . /opt/website | ||
WORKDIR /opt/website | ||
ARG REACT_APP_SERVER=http://localhost:4000 | ||
ARG REACT_APP_GA_TRACKINGID | ||
RUN apk add --no-cache git | ||
RUN npm install -g npm@9 |
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.
Any reason to use npm v9? package-lock.json has "lockfileVersion": 1
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.
It's significantly faster! ⚡
Compare ~7 minutes on the old version vs. 47s on npm 9
(Both Node 10 and 14 come bundled with npm 6.14.12)
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.
Nice!
COPY . /opt/website | ||
WORKDIR /opt/website | ||
ARG REACT_APP_SERVER=http://localhost:4000 | ||
ARG REACT_APP_GA_TRACKINGID | ||
RUN apk add --no-cache git | ||
RUN npm install -g npm@9 |
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.
Nice!
While being far from current, Node 14 is the latest version we can use without having to make further updates to dependencies or code. The changes in this PR don't cause any build errors so it'd be an easy step to get us at least a little closer to running a still-supported version.