Comments (9)
That's a bit strange – so you can't update npm at all? That sounds like a bug with npm and/or io.js – why would it suddenly stop working if it updates?
You sure that node-gyp works fine on Alpine Linux in the first place? I suspected that musl libc prevented many native modules from building at all.
Have you got an easy way to reproduce this?
from alpine-node.
I can use npm, i can't use packages that use node-gyp. It's a bug with node-gyp that's fixed in the npm version bunded with io.js. (nodejs/node-gyp#564, nodejs/node#433)
It works just fine if i copy your dockerfile and remove the npm update -g npm
part. (and install a few extra packages).
Repro something like:
FROM mhart/alpine-iojs
RUN apk add python openssl libgcc make libstdc++ apk add g++
RUN npm install ursa
from alpine-node.
Although now i end up with a 400mb image, so not a huge gain anymore.
from alpine-node.
Ok cool – I'll look into this and let you know if I come up with something better!
from alpine-node.
I think that removing the npm upgrade and letting users do it themselves seems fine, but that's up to you obviously.
from alpine-node.
Well I think a solution that allows the latest version of npm is best – I mean, it doesn't make sense to have to be stuck on an old version and not be able to upgrade.
from alpine-node.
Of course, but the user can always run npm update -g npm
on his own if he so wishes (without having to affect other people who need the bundled version for node-gyp).
iojs moves pretty fast and there's usually a pretty new npm bundled with it (1.7.1 has the private repos npm installed for one).
from alpine-node.
Well, I've rebuilt and pushed as mhart/alpine-iojs
with tags latest
, 1.7
and 1.7.1
– let me know if that fixes it for you.
from alpine-node.
It does, thank you.
from alpine-node.
Related Issues (20)
- CDN Issue? HOT 2
- Missing slim-12.14 HOT 1
- Only pulling Alpine 4.9 not 4.10 HOT 1
- Update alpine in 12:alpine-node because vulnerability HOT 4
- returned a non-zero code: 2 HOT 1
- Newest version 14 image size HOT 2
- Node version change? HOT 8
- Node version 8 in version 10 images HOT 3
- ARM version HOT 2
- Gitlab CI/CD failing to build react app with latest version (docker environment) HOT 6
- Warning when build with signature HOT 2
- Release ARM64 images HOT 2
- Node 16 based image HOT 2
- Some of the imported PGP keys have expired HOT 5
- Fatal process OOM in Failed to reserve virtual memory for CodeRange (mhart/alpine-node:16) HOT 1
- pnpm support HOT 1
- CVE-2022-28391
- Is this project still maintained? HOT 2
- node 18 support HOT 3
- Not able to save Cookies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alpine-node.