Cannot find angular/tsc-wrapped while doing an ionic serve?

Hello folks,

I’ve and issue with the latest version of Ionic, usually I do a “ionic serve” to start the server but after the update I can’t because I’ve this error : Error: Cannot find module '@angular/tsc-wrapped/src/tsc’
ionic info are :

global packages:

    @ionic/cli-utils : 1.5.0
    Ionic CLI        : 3.5.0

local packages:

    @ionic/app-scripts              : 2.0.1
    @ionic/cli-plugin-ionic-angular : 1.3.2
    Ionic Framework                 : ionic-angular 3.5.0

System:

    Node       : v8.1.2
    OS         : Linux 3.16
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 5.2.0

Did someone have the same issue ? Thank’s for your help !

See here: Npm5 lock files - What changes?

And me. Fine with npm 5.1

global packages:

    @ionic/cli-utils : 1.5.0
    Cordova CLI      : 7.0.1
    Ionic CLI        : 3.5.0

local packages:

    @ionic/app-scripts              : 2.0.1
    @ionic/cli-plugin-cordova       : 1.4.1
    @ionic/cli-plugin-ionic-angular : 1.3.2
    Cordova Platforms               : android 6.2.3
    Ionic Framework                 : ionic-angular 3.5.0

System:

    Node       : v6.11.0
    OS         : Windows 10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 5.2.0

Thanks for the information, I downgraded NPM and all works !

an Other or Better Solution is to disable the package-lock file

Here is a short Manual:

  1. create a file on the Project Root called
    .npmrc
  2. put the following code inside the File:
    package-lock=false
  3. delete the package-lock.json File
  4. run
    npm cache clear --force
  5. run
    npm install
1 Like