'$'不被识别为内部或外部命令。 [英] '$' is not recognized as an internal or external command.."
问题描述
我已经安装了Node并重新启动了我的电脑,添加了C:\Program Files\\\
odejs\到我的路径,但是当我在命令提示符中运行$ node -version来检查版本时, $'不被识别为内部或外部命令,可操作的程序或批处理文件。
I've installed Node and restarted my computer, added ;C:\Program Files\nodejs\ to my Paths, but when I run $ node -version in the command prompt to check the version it returns "'$' is not recognized as an internal or external command, operable program or batch file.
推荐答案
code> $ 它只是一个提示标记在Unix类型的系统上它是Unix中的传统,在命令行中列出一些命令在命令行 $
。它表示它是一个shell命令,但是当你键入命令时,你不键入它所以如果你看到:
You don't need the $
. It is just a prompt marker on Unix-type systems. It is tradition among the Unix folks when listing in instructions some commands to enter at the command line to precede a command with the $
. It signals that it is a shell command, but when you type the command, you don't type it. So if you see:
$ node foo.js
您在命令行提示符下键入节点foo.js
,而不是 $
。
You type node foo.js
at the command line prompt, and not the $
.
有时你也可能会看到#
,传统上,这是一个提示符,但这个是与 root
user。因此,它将作为用户 root
在Unix类型系统上执行的命令之前。
You might also see #
sometimes, which again, traditionally, is a prompt but this one is associated with the root
user. So it would precede a command to be executed as the user root
on a Unix-type system.
这篇关于'$'不被识别为内部或外部命令。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!