简体   繁体   中英

ionic serve of IONIC 1 project, not working in ionic 4 cli

Today after launching of IONIC 4 Beta, I updated my IONIC CLI to 4.0.1. After as i was trying to serve one of my IONIC v1 project using

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] Looks like @ionic/v1-toolkit isn't installed in this project.

   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

[ERROR] A utility CLI has unexpectedly closed.

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

PLEASE HELP

As suggested in warning [INFO] Looks like @ionic/v1-toolkit isn't installed in this project.

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

Install ionic lab

npm install @ionic/lab

This will resolve the issue

Ionic lab doesn't work with ionic CLI 4.0.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM