Packaging NPM.
From HacDC Wiki
I'm basing the process off of the Arch Linux AUR for NPM, which does pretty much the same thing.
- su -
- rm -rf /tmp/fakeroot
- mkdir -p /tmp/fakeroot
- curl -SsL http://registry.npmjs.org/npm/ | sed -e 's/^.*tarball":"//' -e 's/".*$//'
- This results in the URL of the latest version of NPM available.
- mkdir -p /tmp/fakeroot/usr/share/{doc,licenses/npm}
- cd /tmp
- wget <URL of latest version of NPM>
- tar xvfz npm-x.y.z.tar.gz