Skip to content

ghostbar/alpine-pkg-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alpine-pkg-nodejs

  • nodejs: 7.7.1-r0 (x86_64)
  • libuv: 1.11.0-r0 (armhf && x86_64)

More alpine-related stuff here!

WHAT IS THIS?

This is an alternative repository for the latest nodejs packages using alpine 3.2, 3.3, 3.4 and edge.

FAQ

How do I use it?

# echo 'http://ghostbar.github.io/alpine-pkg-nodejs/v3.2/pkgs' >> \
  /etc/apk/repositories apk --update --allow-untrusted add nodejs

You could download the package directly as well with:

$ curl -O \
https://ghostbar.github.io/alpine-pkg-nodejs/v3.2/pkgs/x86_64/nodejs-5.6.0-r0.apk
# apk add --allow-untrusted nodejs-5.6.0-r0.apk

Which way is better to download?

If you use it in the repo-way then you will always download and install the latest nodejs. If you decide to download it with curl then you will just use that version. This is not bad, necessarily, the version will keep existing here, it won't be deleted if there's a new version packaged, but yet, is an older version.

But I'm a crazy person that wants it's docker image as small as possible, downloading the APKINDEX.tar.gz will bloat it!

If that's what worries you, then just do a rm -rf /var/cache/apk/* and you're done.

I'm getting a BAD signature

You probably changed the name of the package, since the signature is linked to the package name.

I'm getting an UNTRUSTED signature

You need to use --allow-untrusted when launching apk commands, including apk update.

Is this really necessary? I could just install the latest nodejs from edge, don't I?

Yes, you can install it but it won't work. v3.2 and edge are using different gcc (4.9 on v3.2 and 5.2 on edge) and there was a change of ABI which renders the package unusable if linked with an older gcc installation. So when you try to install a package with npm it will give you issues with symbols not found.

About

Latest nodejs stable packages for Alpine Linux

Resources

Stars

Watchers

Forks

Packages

No packages published