我使用的是Windows10,并且在我的本地机器上安装了Node.js (带npm)。我正在试着遵循一条指令,上面写着:
"Once node.js and npm are installed, run the following command in your terminal.
npm install -g live-server
This will install live-server⁵, a simple static server that has live reload built-in. To
start your server, run live-server in your terminal from the root /code folder —
it will even open a new browser window for you!"因为我在Windows上,所以我猜“终端”的意思是“命令提示符”。因此,我在C://提示符下运行了"npm install -g live-server“。
我现在对它说的“在你的终端中从根/code文件夹运行live-server”的部分感到困惑。
什么是root /code folder
发布于 2020-04-16 20:24:47
在命令提示符下,无论是cmd.com还是Windows终端(是的,new one的名称中实际上包含the word "terminal" ),进入项目目录(文档将其称为“根”或“cd”文件夹),然后键入:
live-server从字面上看,它是作为命令安装的,就像cd、dir等。
“根”文件夹或“代码”文件夹实际上就是保存index.html文件的文件夹。
https://stackoverflow.com/questions/61250124
复制相似问题