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
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.
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!