javascript - IONIC 1 项目的 ionic 服务,不适用于 ionic 4 cli

标签 javascript angular ionic-framework ionic3 ionic4

今天在 IONIC 4 Beta 发布后,我将 IONIC CLI 更新到 4.0.1。在我尝试使用

为我的 IONIC v1 项目之一提供服务之后

ionic serve command it was showing below error and warnings to me

ionic serve

ionic-v1 serve --host 0.0.0.0 --port 8100 --lr-port 35729 --dev-port 53703 [v1] 'ionic-v1' is not recognized as an internal or external command, [v1] operable program or batch file.

[INFO] 看起来@ionic/v1-toolkit 没有安装在这个项目中。

   This package is required for ionic serve. For more details, please see the CHANGELOG:
   https://github.com/ionic-team/ionic-cli/blob/master/packages/ionic/CHANGELOG.md#4.0.0

[错误] 实用程序 CLI 意外关闭。

    The Ionic CLI will exit. Please check any output above for error details.

请帮忙

最佳答案

如警告中所建议 [INFO] 看起来 @ionic/v1-toolkit 没有安装在这个项目中。

I tried to install @ionic/V1-toolkit using below command and i was able to use ionic serve for my IONIC V1 project from IONIC V4.0.1 CLI.

npm install @ionic/v1-toolkit -g

关于javascript - IONIC 1 项目的 ionic 服务,不适用于 ionic 4 cli,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51538410/

相关文章:

android - SQLIte 的“SUM(total)”在 Android 设备上不起作用,但在浏览器上不起作用

javascript - 如何从 Contentful 中获取单个条目并按字段值查询?

javascript - 有没有办法在本地测试我的 meteor 应用程序时发送电子邮件?

angular - 找不到模块 "ionic-native"

javascript - 在前端显示数据

javascript - 在 angular2 应用程序中加载 JavaScript 文件

android - 将工作 Web 应用程序塑造为 Android 原生 Ionic 应用程序时出现 CORS 问题

javascript - 单击铁选择器中的元素时防止铁选择被触发

javascript - 使用URL anchor 深层链接相册,无需劫持后退按钮

angular - Angular 6 'pdf-viewer' 的 ng2-pdf-viewer 不是已知对象