Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 414
Premkumar Agrawal Avatar asked Jul 26 '18 12:07

Premkumar Agrawal


1 Answers

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
like image 113
Premkumar Agrawal Avatar answered Nov 10 '22 05:11

Premkumar Agrawal