简体   繁体   English

在 Windows 10 上安装后 node.js 无法检查版本

[英]node.js can't check version after installation on windows 10

I installed node.js version 4.4.1 on windows 10 and I tried to code with tutorial from internet.我在 Windows 10 上安装了 node.js 版本 4.4.1,并尝试使用来自互联网的教程进行编码。 The first thing recommended was to write "$ node -v", but after that i'm getting following error:推荐的第一件事是写“$ node -v”,但之后我收到以下错误:

在此处输入图片说明

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM