Package Details: nodejs-npm2arch 1.0.0-1

Git Clone URL: (read-only, click to copy)
Package Base: nodejs-npm2arch
Description: Convert NPM package to a PKGBUILD for ArchLinux
Upstream URL:
Licenses: MIT
Submitter: None
Maintainer: simon04
Last Packager: simon04
Votes: 46
Popularity: 0.000122
First Submitted: 2011-10-28 22:10
Last Updated: 2018-03-12 08:59

Latest Comments

ams1 commented on 2017-08-09 10:09

This just installs a broken link to the source directory, and the only way I could find to make "npm install" not do that was to wrap it up in a tarball.

@@ -14,10 +14,11 @@ noextract=($_npmname-$_npmver.tgz)

package() {
- cd "$srcdir/$_npmname"
+ cd $srcdir
+ tar cf npm2arch.tar npm2arch/
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p $_npmdir
- npm install -g --prefix "$pkgdir/usr"
+ npm install -g --prefix "$pkgdir/usr" npm2arch.tar

simon04 commented on 2017-01-12 07:47

Does not work with latest node/npm:
> Error: Cannot find module 'internal/fs'

Bug tracked upstream as

orschiro commented on 2015-01-10 14:16

I can confirm that @spider-mario solution allows me to install version 0.1.18.

spider-mario commented on 2015-01-10 10:57

Instead of having build() do the work (which it can’t, because it doesn’t have access to $pkgdir) and package() return true, you should remove build() altogether (there’s nothing to build) and instead package in package().

orschiro commented on 2015-01-10 08:09

The latest update fails to build due to a permission error. The previous version 0.1.17. built fine.

Build error:

==> Making package: nodejs-npm2arch 0.1.18-1 (Sa 10. Jan 09:08:06 CET 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading npm2arch-0.1.18.tgz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4928 100 4928 0 0 17819 0 --:--:-- --:--:-- --:--:-- 17790
==> Validating source files with sha1sums...
npm2arch-0.1.18.tgz ... Passed
==> Extracting sources...
==> Starting build()...
mkdir: cannot create directory ‘/home/orschiro/ABS/nodejs-npm2arch/pkg’: Permission denied
==> ERROR: A failure occurred in build().