简体   繁体   English

运行项目时,“open”未被识别为内部或外部命令(npm start)

[英]'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.

相关问题 在 nodejs 中使用 npm 开始的问题。 'nodemon' 不是内部或外部命令、可运行程序或批处理文件 - poblem with use the npm start in nodejs . 'nodemon' is not recognized as an internal or external command, operable program or batch file create-react-app 上的“'npm' 未被识别为内部或外部命令” - "'npm' is not recognized as an internal or external command" on create-react-app Npm脚本始终会给出错误,因为“未被识别为内部或外部命令” - Npm scripts always gives an error as “is not recognized as an internal or external command” bin 不被识别为内部或外部命令。 npm 脚本 - bin is not recognized as an internal or external command. npm script “npm-run-all”不被识别为内部或外部命令 - "npm-run-all" Is Not Recognized As an Internal or External Command 在我的项目目录中,'cocos'不被识别为内部或外部命令 - 'cocos' is not recognized as an internal or external command in the my project directory 无法将“ nodeunit”识别为内部或外部命令, - 'nodeunit' is not recognized as an internal or external command, “vue”未被识别为内部或外部命令 - 'vue' is not recognized as an internal or external command Cat不被视为内部或外部命令 - Cat is not recognized as an internal or external command 'expo' 未被识别为内部或外部命令 - 'expo' is not recognized as an internal or external command
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM