Giter VIP home page Giter VIP logo

Comments (9)

mhart avatar mhart commented on August 23, 2024

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.

mickhansen avatar mickhansen commented on August 23, 2024

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.

mickhansen avatar mickhansen commented on August 23, 2024

Although now i end up with a 400mb image, so not a huge gain anymore.

from alpine-node.

mhart avatar mhart commented on August 23, 2024

Ok cool – I'll look into this and let you know if I come up with something better!

from alpine-node.

mickhansen avatar mickhansen commented on August 23, 2024

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.

mhart avatar mhart commented on August 23, 2024

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.

mickhansen avatar mickhansen commented on August 23, 2024

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.

mhart avatar mhart commented on August 23, 2024

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.

mickhansen avatar mickhansen commented on August 23, 2024

It does, thank you.

from alpine-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.