Packaging NPM.

From HacDC Wiki
Revision as of 16:12, 17 October 2011 by Drwho (talk | contribs) (Created page with "I'm basing the process off of [http://aur.archlinux.org/packages/no/nodejs-npm/PKGBUILD the Arch Linux AUR for NPM], which does pretty much the same thing. * su - * rm -rf /tmp/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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