今天在 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/