问题描述
我想移到Node.js命令提示符下的另一个目录,但是当我打开Node.js cmd窗口时,它没有显示任何路径。这是Node.js cmd窗口的屏幕截图:
I want to move to another directory in Node.js command prompt but when I open the Node.js cmd window it doesn't show me any path. Here is the screenshot of the Node.js cmd window:
现在,如果我想将目录更改为 D:\abc
,该如何
Now if i want to change directory to D:\abc
then how can i do it here?
推荐答案
那不是Node.js命令提示符窗口。这是运行JavaScript命令的语言外壳,也称为。
That isn't the Node.js command prompt window. That is a language shell to run JavaScript commands, also known as a REPL.
在Windows中,开始菜单或开始屏幕中应该有一个 Node.js命令提示符:
In Windows, there should be a Node.js command prompt in your Start menu or start screen:
这将打开一个如下所示的命令提示符窗口:
Which will open a command prompt window that looks like this:
从此处可以使用 cd
命令切换目录。
From there you can switch directories using the cd
command.
这篇关于在Node.js命令提示符下更改目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!