Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Cannot get node version #28

@netpoetica

Description

@netpoetica

I was hoping there would be a way to get the node version via node --version, but that command is unavailable. So instead I figured I would log the version number off of the process variable, but this code fails to render (it just hangs up):

var http = require('http');

http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.write("Hello World from node v" + process.version + "\n");
  res.end();
}).listen();

Ideally a tool look this would have a selectable node version and ability to use flags as well, but in the very least it would be good to know what version of node I am working with

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions