Package Details: nodejs-npm2arch 2.2.0-1

Git Clone URL: https://aur.archlinux.org/nodejs-npm2arch.git (read-only, click to copy)
Package Base: nodejs-npm2arch
Description: Convert NPM package to a PKGBUILD for ArchLinux
Upstream URL: https://github.com/simon04/npm2arch
Licenses: MIT
Submitter: None
Maintainer: simon04
Last Packager: simon04
Votes: 48
Popularity: 0.022342
First Submitted: 2011-10-28 22:10 (UTC)
Last Updated: 2021-12-09 21:44 (UTC)

Latest Comments

1 2 Next › Last »

simon04 commented on 2021-06-02 18:08 (UTC)

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

eh8 commented on 2021-06-02 17:51 (UTC)

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 (UTC)

@eh8: Fixed via https://github.com/simon04/npm2arch/commit/332becd5baba5d3b2bd20d916e0363c33f74d322 and 2.0.0-1

eh8 commented on 2021-05-05 09:18 (UTC) (edited on 2021-05-05 20:33 (UTC) by eh8)

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 (UTC)

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

simon04 commented on 2020-03-22 07:14 (UTC)

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

raxod502 commented on 2020-03-22 00:48 (UTC) (edited on 2020-03-22 00:48 (UTC) by raxod502)

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 https://registry.npmjs.org/@simon04/npm2arch/-/@simon04/npm2arch-1.0.0.tgz

It looks like the URL was updated to https://registry.npmjs.org/@simon04/npm2arch/-/npm2arch-1.0.0.tgz ?

ams1 commented on 2017-08-09 10:09 (UTC)

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. --- a/PKGBUILD +++ b/PKGBUILD @@ -14,10 +14,11 @@ noextract=($_npmname-$_npmver.tgz) sha1sums=(SKIP) 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 (UTC)

Does not work with latest node/npm: > Error: Cannot find module 'internal/fs' Bug tracked upstream as https://github.com/Filirom1/npm2arch/issues/12

orschiro commented on 2015-01-10 14:16 (UTC)

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