-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
node-abi returns abi version 109 for node 18.19.1. However, it complains that Could not detect target for abi 109 and runtime node when performing the opposite operation.
It seems that version 18.0.0 and 18.20.8 both have abi 108, while 18.19.1 results in 109. These numbers seem off to me, am I wrong?
root@64c3ade003fa:/tmp/wow# mkdir /tmp/wow; cd /tmp/wow; npm init -y
Wrote to /tmp/wow/package.json:
{
"name": "wow",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
root@64c3ade003fa:/tmp/wow# npm install node-abi
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '[email protected]',
npm WARN EBADENGINE required: { node: '>=22.12.0' },
npm WARN EBADENGINE current: { node: 'v18.19.1', npm: '9.2.0' }
npm WARN EBADENGINE }
added 2 packages, and audited 3 packages in 446ms
found 0 vulnerabilities
root@64c3ade003fa:/tmp/wow# node
Welcome to Node.js v18.19.1.
Type ".help" for more information.
> import('node-abi').then(abi => {{ console.log(abi.getAbi('18.19.1', 'node')) }})
Promise {
<pending>,
[Symbol(async_id_symbol)]: 205,
[Symbol(trigger_async_id_symbol)]: 197
}
> 109
> import('node-abi').then(abi => {{ console.log(abi.getTarget('108', 'node')) }})
Promise {
<pending>,
[Symbol(async_id_symbol)]: 709,
[Symbol(trigger_async_id_symbol)]: 701
}
> 18.0.0
> import('node-abi').then(abi => {{ console.log(abi.getTarget('109', 'node')) }})
Promise {
<pending>,
[Symbol(async_id_symbol)]: 789,
[Symbol(trigger_async_id_symbol)]: 781
}
> Uncaught Error: Could not detect target for abi 109 and runtime node
at Module.getTarget (file:///tmp/wow/node_modules/node-abi/index.js:55:9)
> import('node-abi').then(abi => {{ console.log(abi.getAbi('18.20.8', 'node')) }})
Promise {
<pending>,
[Symbol(async_id_symbol)]: 97,
[Symbol(trigger_async_id_symbol)]: 88
}
> 108
Metadata
Metadata
Assignees
Labels
No labels