Package Details: nodejs-npm2arch 2.0.0-2

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: 47
Popularity: 0.000046
First Submitted: 2011-10-28 22:10
Last Updated: 2021-06-02 18:07

Latest Comments

1 2 Next › Last »

simon04 commented on 2021-06-02 18:08

@eu8: Thanks for reporting. Damn. 2.0.0-2 should be correct.

eh8 commented on 2021-06-02 17:51

Thanks for the fix. You will need to update the PKGBUILD source, it's still pulling the 1.0.0 tgz

simon04 commented on 2021-06-02 17:42

@eh8: Fixed via and 2.0.0-1

eh8 commented on 2021-05-05 09:18

Running this tool now generates

TypeError: must call as: npm.load(callback)
    at Object.load (/usr/lib/node_modules/npm/lib/npm.js:127:13)
    at /usr/lib/node_modules/@simon04/npm2arch/lib/npm2PKGBUILD.js:71:9
    at new Promise (<anonymous>)
    at npmInfo (/usr/lib/node_modules/@simon04/npm2arch/lib/npm2PKGBUILD.js:70:10)
    at module.exports (/usr/lib/node_modules/@simon04/npm2arch/lib/npm2PKGBUILD.js:11:10)
    at Object.<anonymous> (/usr/lib/node_modules/@simon04/npm2arch/bin/npm2PKGBUILD:13:1)
    at Module._compile (node:internal/modules/cjs/loader:1109:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
    at Module.load (node:internal/modules/cjs/loader:989:32)
    at Function.Module._load (node:internal/modules/cjs/loader:829:14)

raxod502 commented on 2020-03-22 15:15

Can confirm it works now. This is a great tool, thanks so much!

simon04 commented on 2020-03-22 07:14

@raxod502: Thanks for letting me know; I addressed this issue in 1.0.0-2

raxod502 commented on 2020-03-22 00:48

This fails with a 404:

==> Retrieving sources...
  -> Downloading npm2arch-1.0.0.tgz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 
==> ERROR: Failure while downloading

It looks like the URL was updated to ?

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.