FS#54903 - [apm] Module version mismatch
Attached to Project:
Community Packages
Opened by Carlos Eduardo (cemsbr) - Saturday, 22 July 2017, 02:46 GMT
Last edited by Balló György (City-busz) - Monday, 16 October 2017, 13:15 GMT
Opened by Carlos Eduardo (cemsbr) - Saturday, 22 July 2017, 02:46 GMT
Last edited by Balló György (City-busz) - Monday, 16 October 2017, 13:15 GMT
|
Details
Description: Can't use apm.
$ apm --help # same error with apm update, apm --version, etc. module.js:597 return process.dlopen(module, path._makeLong(filename)); ^ Error: Module version mismatch. Expected 48, got 57. at Error (native) at Object.Module._extensions..node (module.js:597:18) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/usr/lib/node_modules/atom-package-manager/node_modules/git-utils/lib/git.js:8:16) at Object.<anonymous> (/usr/lib/node_modules/atom-package-manager/node_modules/git-utils/lib/git.js:371:4) at Module._compile (module.js:570:32) Additional info: * version 1.18.2-2 |
This task depends upon
Closed by Balló György (City-busz)
Monday, 16 October 2017, 13:15 GMT
Reason for closing: Fixed
Additional comments about closing: nodejs-lts-argon 4.8.4-2, nodejs-lts-boron 6.11.4-1
Monday, 16 October 2017, 13:15 GMT
Reason for closing: Fixed
Additional comments about closing: nodejs-lts-argon 4.8.4-2, nodejs-lts-boron 6.11.4-1
$ pacman -Ql apm | grep $(which apm)
apm /usr/bin/apm
$ /usr/bin/apm --help
# Same error
I think, if we are going to have nodejs LTS packages in the repos, they should provide "nodejs=$pkgver" rather than just "nodejs"... packages that specifically depend on (and are built against) the latest stable nodejs version should explicitly depend on that rather than a provides which can be fulfilled by three different packages two of which are incompatible.
So we have two problems:
1. nodejs-lts-argon and nodejs-lts-boron should provide nodejs=$pkgver, not just simply nodejs.
2. apm should depend on nodejs>=8.