После обновления моего Ionic CLI с версии v3 до версии v4 я не могу запустить приложение Ionic 3. Кажется, что при запуске ionic serve
.
создается цикл npm. Вот моя ионная информация:
Ionic:
Ionic CLI : 5.4.2 (C:\Users\XXX\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 7.1.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 16 other plugins)
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v10.15.0 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10
Когда я запускаю ionic server
, вот мой вывод на консоль:
> npm.cmd run ionic:serve -- --address localhost --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[npm] > @XX/app@2.4.3 ionic:serve C:\Users\XX\app-ionic-v3
[npm] > ionic serve --no-interactive -b "--address" "localhost" "--port" "8100" "--livereload-port" "35729" "--dev-logger-port" "53703" "--nobrowser"
[npm] [WARN] The --nobrowser option has been deprecated. Please use --no-open.
[npm] > npm.cmd run ionic:serve -- --address localhost --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[npm] [npm] > @XX/app@2.4.3 ionic:serve C:\Users\XX\app-ionic-v3
[npm] [npm] > ionic serve --no-interactive -b "--address" "localhost" "--port" "8100" "--livereload-port" "35729" "--dev-logger-port" "53703" "--nobrowser"
[npm] [npm] [WARN] The --nobrowser option has been deprecated. Please use --no-open.
[npm] [npm] > npm.cmd run ionic:serve -- --address localhost --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[npm] [npm] [npm] > @XX/app@2.4.3 ionic:serve C:\Users\XX\app-ionic-v3
[npm] [npm] [npm] > ionic serve --no-interactive -b "--address" "localhost" "--port" "8100" "--livereload-port" "35729" "--dev-logger-port" "53703" "--nobrowser"
[npm] [npm] [npm] [WARN] The --nobrowser option has been deprecated. Please use --no-open.
[npm] [npm] [npm] > npm.cmd run ionic:serve -- --address localhost --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[INFO] Waiting for connectivity with npm...
[npm] [npm] [npm] [npm] > @XX/app@2.4.3 ionic:serve C:\Users\XX\app-ionic-v3
[npm] [npm] [npm] [npm] > ionic serve --no-interactive -b "--address" "localhost" "--port" "8100" "--livereload-port" "35729" "--dev-logger-port" "53703" "--nobrowser"
[npm] [npm] [npm] [npm] [WARN] The --nobrowser option has been deprecated. Please use --no-open.
[npm] [INFO] Waiting for connectivity with npm...
[npm] [npm] [npm] [npm] > npm.cmd run ionic:serve -- --address localhost --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
После этого мне нужно нажать CTRL + C, чтобы остановить этот бесконечный цикл.
У меня нет никакой подсказки, чтобы исследовать эту ошибку.
Можете ли вы помочь?
Спасибо