我正在使用Visual Studio代码编辑器URL处理Angular7:http://localhost:4200(工作正常)
但是,我安装了扩展Live Server,当我点击Liveserver图标时,它给了我错误
“端口5500出错。请尝试通过设置更改端口或在GitHub上报告。”
所以,我打开了File-> preference-> Settings-> LiveServerConfig并试图在settings.json文件中更改端口
{
"typescript.tsdk": "./node_modules/typescript/lib",
"tslint.enable": false,
"liveServer.settings.multiRootWorkspaceName": "QiwkCollaboratorTool",
"liveServer.settings.root": 0 // New added line
}
我是朝着正确的方向前进还是错过了什么?我不知道如何将端口号5500更改为0,因为我想要随机端口号。
提前致谢!