【问题标题】:ionic serve fails on git bash离子服务在 git bash 上失败
【发布时间】:2019-06-18 08:21:02
【问题描述】:

我用的是ionic 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,但仍然遇到相同的错误。

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

【问题讨论】:

    标签: npm ionic3 git-bash


    【解决方案1】:

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

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

    你应该试试

    rm -rf node_modules package-lock.json

    然后

    npm install

    【讨论】:

    • 我刚切换回linux,希望答案可以帮助到其他人。
    猜你喜欢
    • 2018-06-02
    • 1970-01-01
    • 2018-01-18
    • 2018-08-24
    • 1970-01-01
    • 1970-01-01
    • 2016-09-23
    • 2018-06-10
    • 1970-01-01
    相关资源
    最近更新 更多