离子服务在git bash上失败

时间:2019-01-24 14:49:22

标签: npm ionic3 git-bash

我使用离子3,启动项目后,命令ionic serve出现以下错误:

[app-scripts] 'ionic-app-scripts' is not recognized as an internal or external command,
[app-scripts] operable program or batch file.

[INFO] Looks like @ionic/app-scripts isn't installed in this project.

       This package is required for this command to work properly. The
 package provides a CLI utility, but the ionic-app-scripts binary was not found in your PATH.

我尝试删除node_modules后立即运行npm install,但仍然遇到相同的错误。

有什么解决方法吗?谢谢。

1 个答案:

答案 0 :(得分:0)

他们在这里有相同的错误:

https://github.com/ionic-team/ionic-cli/issues/3399

您应该尝试

rm -rf node_modules package-lock.json

然后

npm install