[英]node.js can't check version after installation on windows 10
You're already in the Node REPL, not in Windows' cmd (see the Node icon in the title bar?).您已经在 Node REPL 中,而不是在 Windows 的 cmd 中(看到标题栏中的 Node 图标了吗?)。 You can directly write JS in that.
你可以直接在里面写JS。
To get the version, run node -v
on Windows' cmd.要获取版本,请在 Windows 的 cmd 上运行
node -v
。
您无法在节点REPL中检查节点版本以检查您需要退出节点 REPL 的节点版本, ctrl+c
x2 然后输入node -v
或午餐cmd
并输入node -v
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.