-
Notifications
You must be signed in to change notification settings - Fork 2k
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
npm 5.3.0 in node 8 #450
Comments
Official policy is to not update it, as it's bundled with node itself. So normally we'd wait until the next node update. Not sure if we want to make an exception or not for this one? |
Yeah, it might deserve some kind of an exception because of the number of problems in npm 5.0.x. Does node have to get a minor version bump to cause npm's minor version bump? Or can node 8.1.3 → 8.14 upgrade imply npm 5.0.3 → 5.1.0? UPD 5.3.0 |
I really think it would be a great idea because trying:
Building the image
Running the container using this image
|
Yes, as mentioned, this is known. #449 |
You can do this as a workaround: FROM node:8
RUN yarn global add npm
RUN npm --version It works with alpine as well. |
Are we good to close this out? It's an npm issue that I'm assuming will get fixed in a future v8.1 update. |
Hi @chorrell, do you mean 8.1.5? Just tried 8.1.4 – npm is still 5.0.3 docker run -it node:8.1.4 /bin/sh
node --version
# v8.1.4
npm --version
# 5.0.3 Might be worth keeping this issue open until 5.1.0+ is out there – some people might be subscribed to updates and are waiting for a moment when they can update their CI scripts :–) |
No, I wasn't thinking of a specific v8.x.x release. I did a quick search and I think this would be a better issue to track: Looks like npm v5.2.0 is due to land (I think) in v8.2.0: |
+1 on closing. Our policy is to to not track npm releases, just use what's bundled in node. If someone really wants to upgrade npm, they can just do |
Node 8.2.0 is out, with npm 5.3.0 bundled! Hopefully, it would be published to Docker Hub soon. |
A PR to docker hub is up: docker-library/official-images#3210 After that's merged it'll generally appear in 1-2 hours |
It's out now. |
Just opening this to discuss npm 5 upgrade due to its recent important release. It fixes quite a few serious bugs in
npm install
, which used to break the contentsnode_modules
directory between the commits.I guess I'm not the only person interested to know when to finally uncomment
node_modules
caching in CI and thus get some speed boost and reduce the load on the public registry :–)The text was updated successfully, but these errors were encountered: