【发布时间】:2020-07-29 16:27:20
【问题描述】:
我使用的是 Windows 10,并且已在本地计算机上安装了 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 是什么?
【问题讨论】:
-
那么您要提供的文件在哪里?
标签: node.js npm npm-live-server