我有一个包含 html/css/javascript 文件的项目,我想输入命令npm start
来运行json-server和live-server。
我试过这个命令:"start": "json-server --watch db.json && live-server"
,但它只启动第一个命令,而不是两个。
package.json
{
"name": "testa-npm-live-server",
"version": "1.0.0",
"description": "",
"main": "",
"dependencies": {},
"devDependencies": {
"json-server": "^0.16.1",
"live-server": "^1.2.1"
},
"scripts": {
"start": "json-server --watch db.json && live-server"
},
"author": "",
"license": "ISC"
}
IDE:vscode
节点版本:v12.18.1
NPM 版本:6.14.5