Ionic-framework: Upgrade to 3.6.0 - ionic serve - Error: Cannot find module 'fs-extra'

Created on 28 Jul 2017  ยท  3Comments  ยท  Source: ionic-team/ionic-framework

Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
I upgraded a 3.5.3 project to 3.6.0 using the steps on the releases page https://github.com/ionic-team/ionic/releases/tag/v3.6.0

After I upgraded, running ionic serve prompted me to upgrade a number of CLI packages which I did

PS C:\Users\longz\Documents\GitHub\mypal-ionic> ionic serve
[WARN] No local CLI detected.
       Starting with CLI 3.6, the CLI must be installed locally to use local CLI plugins.

? Install now? Yes
> npm install --save-dev --save-exact ionic@latest
โˆš Running command - done!
[OK] Installed Ionic CLI locally!

Please re-run your command.
PS C:\Users\longz\Documents\GitHub\mypal-ionic> ionic serve
? Local plugin @ionic/cli-plugin-cordova has an update available (1.4.1 => 1.5.0)! Would you like to install it? Yes
> npm install --save-dev --save-exact @ionic/cli-plugin-cordova@latest
โˆš Running command - done!
[OK] Updated @ionic/cli-plugin-cordova to 1.5.0! ๐ŸŽ‰
? Local plugin @ionic/cli-plugin-gulp has an update available (1.0.2 => 1.1.0)! Would you like to install it? Yes
> npm install --save-dev --save-exact @ionic/cli-plugin-gulp@latest
โˆš Running command - done!
[OK] Updated @ionic/cli-plugin-gulp to 1.1.0! ๐ŸŽ‰
? Local plugin @ionic/cli-plugin-ionic-angular has an update available (1.3.2 => 1.4.0)! Would you like to install it? Yes
> npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest
โˆš Running command - done!
[OK] Updated @ionic/cli-plugin-ionic-angular to 1.4.0! ๐ŸŽ‰
> npm dedupe
โˆš Running command - done!
Error: Cannot find module 'fs-extra'
PS C:\Users\longz\Documents\GitHub\mypal-ionic> ionic serve
Error: Cannot find module 'fs-extra'

Expected behavior:
ionic serve should work

Steps to reproduce:

Related code:

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

PS C:\Users\longz\Documents\GitHub\mypal-ionic> ionic info

cli packages:

    @ionic/cli-plugin-cordova       : 1.5.0 (C:\Users\longz\Documents\GitHub\mypal-ionic\node_modules\@ionic\cli-plugin-cordova)
    @ionic/cli-plugin-gulp          : 1.1.0 (C:\Users\longz\Documents\GitHub\mypal-ionic\node_modules\@ionic\cli-plugin-gulp)
    @ionic/cli-plugin-ionic-angular : 1.4.0 (C:\Users\longz\Documents\GitHub\mypal-ionic\node_modules\@ionic\cli-plugin-ionic-angular)
    @ionic/cli-utils                : 1.6.0 (C:\Users\longz\Documents\GitHub\mypal-ionic\node_modules\@ionic\cli-utils)
    ionic (Ionic CLI)               : 3.6.0 (C:\Users\longz\Documents\GitHub\mypal-ionic\node_modules\ionic)

global packages:

    Cordova CLI : 7.0.1
    Gulp CLI    : CLI version 1.3.0 Local version 3.9.1

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : android 6.2.3 ios 4.4.0
    Ionic Framework    : ionic-angular 3.6.0

System:

    Node : v6.11.0
    OS   : Windows 10
    npm  : 5.2.0

Most helpful comment

I've had weirdness after updates too. Try deleting your node_modules folder and do an npm install. Make sure to delete the package-lock.json file first!

All 3 comments

I've had weirdness after updates too. Try deleting your node_modules folder and do an npm install. Make sure to delete the package-lock.json file first!

Hello! Thanks for using Ionic. This sounds like an npm 5 issue to me. Unfortunately, npm 5 has been pretty buggy. @davec21 's suggestion will fix this issue. I would also recommend updating to npm 5.3.0 as that has a few good bug fixes.

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GeorgeAnanthSoosai picture GeorgeAnanthSoosai  ยท  3Comments

gio82 picture gio82  ยท  3Comments

MrBokeh picture MrBokeh  ยท  3Comments

brandyscarney picture brandyscarney  ยท  3Comments

brandyscarney picture brandyscarney  ยท  3Comments