Skip to content

Support node old versions #3236

@witchcraze

Description

@witchcraze

What would you like to be added:

Support old versions of node in binary detection

  • 0.10.x
  • 0.12.x
  • 4.x
  • 5.x
  • 6.x

Additional context:

0.10

$ docker run -it --rm node:0.10 strings /usr/local/bin/nodejs | grep -C 1 -e '0\.10'
status == 0
node v0.10.48
FATAL ERROR: %s %s

0.12

$ docker run -it --rm node:0.12 strings /usr/local/bin/nodejs | grep -C 2 -e '0\.12\.18'
--debug-brk=
--debug-port=
v0.12.18
--enable-ssl2
--enable-ssl3

4

$ docker run -it --rm node:4 strings /usr/local/bin/nodejs | grep -C 2 -e '4\.9\.1'
emit
Starting debugger agent.
v4.9.1
moduleLoadList
http_parser
--
  (env->context()) == (env->isolate()->GetCurrentContext())
Starting debugger on %s:%d failed
https://nodejs.org/download/release/v4.9.1/node-v4.9.1.tar.gz
https://nodejs.org/download/release/v4.9.1/node-v4.9.1-headers.tar.gz
(0) == (uv_async_init(uv_default_loop(), &dispatch_debug_messages_async, DispatchDebugMessagesAsyncCallback))
Debug port must be in range 1024 to 65535.

5

$ docker run -it --rm node:5 strings /usr/local/bin/nodejs | grep -C 2 -e '5\.12\.0'
emit
Starting debugger agent.
v5.12.0
moduleLoadList
http_parser
--
  (env->context()) == (env->isolate()->GetCurrentContext())
Starting debugger on port %d failed
https://nodejs.org/download/release/v5.12.0/node-v5.12.0.tar.gz
https://nodejs.org/download/release/v5.12.0/node-v5.12.0-headers.tar.gz
Debug port must be in range 1024 to 65535.
Usage: node [options] [ -e script | script.js ] [arguments]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions