Running "connect:livereload" (connect) taskStarted connect web server on http://localhost:9000Fatal error: spawn cmd ENOENT
1 回答
一毛钱
TA贡献156条经验 获得超57个赞
原因,windows下npm执行名不同
进行一下判断
var ps = require('child_process').spawn(process.platform === "win32" ? "npm.cmd" : "npm", ['install'], { stdio: 'inherit', cwd: srcPath });
- 1 回答
- 0 关注
- 1390 浏览
添加回答
举报
0/150
提交
取消