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

Cannot get node version #28

Open
netpoetica opened this issue Oct 22, 2014 · 0 comments
Open

Cannot get node version #28

netpoetica opened this issue Oct 22, 2014 · 0 comments

Comments

@netpoetica
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant