Closed c0debreaker closed 6 years ago
mhart/alpine-node:6
already has npm
v3.10.10
Ah, sorry – I was confused about what you were doing. Ignore my last comment.
It may just be permissions issues – you can read more about that here: https://github.com/npm/npm/issues/17851
Also might be a Docker filesystem issue?
I suspect you're running into this issue with npm:
https://github.com/npm/npm/issues/16807#issuecomment-307034409
So try what it suggests there:
FROM mhart/alpine-node:6
RUN npm i -g npm3 && npm3 -g uninstall npm
RUN npm3 i -g npm@latest
RUN npm -v
Ok, I'll try those. Thanks!
When using non alpine image, updating npm works. However, when using alpine, the updated npm fails with
cannot find module isArray
.Dockerfile
Then I go interactively
And I update npm
Then I execute npm -v