thwi / node-icontrol

F5 BIG-IP iControl REST API convenience methods for node.js
11 stars 4 forks source link

Latest request module breaks iControl for TMOS v12.x and v13.0 #8

Open ArtiomL opened 6 years ago

ArtiomL commented 6 years ago

Hi,

Latest request versions require Node.js v4.0.0 and up.

TMOS v13.0 currently runs:

[root@bip_A:Active:Standalone] config # node --version
v0.12.15

This dependency breaks your code on BIG-IP v12.x and v13.0 because icontrol tries to install the latest 2.x request version:

"dependencies": {
    "request": "2.x"
}

Please consider updating package.json or the documentation to manually install a previous version that supports Node.js v0.12.15:

npm install request@v2.76.0 --save

Thanks!

elv1s commented 6 years ago

Another option, on 13.0 would be to use the f5-rest-node binary

/usr/bin/f5-rest-node -e 'console.log(process.versions)' { http_parser: '2.7.0', node: '4.6.0', v8: '4.5.103.37', uv: '1.9.1', zlib: '1.2.8', ares: '1.10.1-DEV', modules: '46', openssl: '1.0.2j' }

ArtiomL commented 6 years ago

This won't help with iRules LX. The iRules LX engine uses the v0.12.15 node on v12.x and v13.0. Example project using icontrol with iRules LX that got broken: https://github.com/codygreen/F5-MFA