[英]'open' is not recognized as an internal or external command while running project (npm start)
I have cloned this project from github alt-tutorial我已经从 github alt-tutorial克隆了这个项目
while running the command npm start I am getting this error运行命令 npm start 时出现此错误
Please use start
if you are using windows.如果您使用的是 Windows,请使用
start
。 open
is a unix command so won't work in windows machines. open
是一个 unix 命令,所以在 Windows 机器上不起作用。 for example if you have a command like below in a windows env:例如,如果您在 Windows 环境中有如下命令:
"scripts": {
"start": "webpack && open index.html"
},
Use following instead:请改用以下内容:
"scripts": {
"start": "webpack && start index.html"
},
您能否使用以下命令清除npm
缓存npm
试。
npm cache clean
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.