Ionic serve not working in Ionic 3

前端 未结 20 592
眼角桃花
眼角桃花 2021-01-16 23:06

My Ionic info:

cli packages: (/usr/lib/node_modules)

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

global packages:

Cordova CLI : 7.0.1 

local pack         


        
相关标签:
20条回答
  • 2021-01-16 23:45

    Try below steps.. May be it will help

    npm install -g ionic@latest
    
    npm install @ionic/app-scripts@latest --save-dev
    
    npm install ionic-angular@latest --save
    
    ionic serve
    
    0 讨论(0)
  • 2021-01-16 23:49

    When I use ionic cli build app(ionic3 + angular5),same problem happened to me.I updated '@ionic/app-scripts' to version '3.1.6',then problem solved

    0 讨论(0)
  • 2021-01-16 23:54

    Use "npm install" and then "gulp build" & "gulp serve". Also make sure you update all the dependencies. Check versions of your dependencies by "ionic info".

    0 讨论(0)
  • 2021-01-16 23:56

    For update changes in platform file you have to run ionic cordova prepare and then run ionic serve it works.. ionic cordova prepare copy all files of www into platform directory that will reflect in your apk or ipa

    0 讨论(0)
  • 2021-01-16 23:57

    You should not use "sudo" with any of the ionic/npm commands. If it throws error without "sudo", then you can fix it by changing the owner of the npm packages, using the command below:

    sudo chown -R $(whoami) ~/.npm

    0 讨论(0)
  • 2021-01-16 23:57

    Have you tried using this cmd

    npm run ionic:serve

    0 讨论(0)
提交回复
热议问题