Cannot find module '@angular/tsc-wrapped/src/tsc'

During a recent development issues with npm I upgraded to v5.2.0.

When running an ionic serve I was getting the following error

Error: Cannot find module '@angular/tsc-wrapped/src/tsc'
{ authenticatorApp } master » ionic serve

> [email protected] ionic:serve C:\development\ionic\authenticatorApp
> ionic-app-scripts serve "--v2" "undefined" "--address" "" "--port" "8100" "--livereload-port" "35729"

    throw err;

Error: Cannot find module '@angular/tsc-wrapped/src/tsc'
    at Function.Module._resolveFilename (module.js:489:15)
    at Function.Module._load (module.js:439:25)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\development\ionic\authenticatorApp\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:7:13)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
npm ERR! errno 1
npm ERR! [email protected] ionic:serve: `ionic-app-scripts serve "--v2" "undefined" "--address" "" "--port" "8100" "--livereload-port" "35729"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] ionic:serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\NIrving\AppData\Roaming\npm-cache\_logs\2017-08-27T01_02_00_104Z-debug.log
There was an error serving your Ionic application: There was an error with the spawned command: serve

Turns out there is an issue with npm 5.2.0 and the following resolved it

  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
  6. run ionic serve
echo >> .npmrc <<EOF
rm -rf package-lock.json
npm cache clear --force
npm install
ionic serve
Loading Google+ Comments ...