Node.js version on the command line? (not the REPL)

后端 未结 13 1016
不思量自难忘°
不思量自难忘° 2020-12-07 08:01

I want to get the version of Node.js on the command line. I\'m expecting to run a command like:

node -version

but that doesn\'t work. Does

13条回答
  •  北荒
    北荒 (楼主)
    2020-12-07 08:58

    If you want to check in command prompt use node -v or node --version

    v6.9.5
    

    If u have node.exe then in node you can give.

    >process
    process {
      title: 'node',
      version: 'v6.9.5',
      .......
    

提交回复
热议问题