After updatering to Ionic CLI 4: Error: Cannot find module './binding'

#1

Hi,

So I finally found the courage to answer YES to the update prompt that hits me every time I run “ionic serve”. And like always I regret it already, because… like always… when you update stuff in cordova/ionic shit gets broken.

So I updated from Ionic CLI 3.19.1 to 4.0.6. Before update everything worked perfectly, now when I run “ionic serve” I get:

 > ionic-v1 serve --host=0.0.0.0 --port=8100 --livereload-port=35729 --dev-port=53703 --engine=browser
[v1] (node:44339) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
[v1] [11:04:53] Cannot load gulp: Error: Error in module: ./gulpfile.js:
[v1] Error: Cannot find module './binding'
[v1]     at Function.Module._resolveFilename (module.js:469:15)
[v1]     at Function.Module._load (module.js:417:25)
[v1]     at Module.require (module.js:497:17)
[v1]     at require (internal/module.js:20:19)
[v1]     at Object.<anonymous> (App/node_modules/node-sass/lib/index.js:14:35)
[v1]     at Module._compile (module.js:570:32)
[v1]     at Object.Module._extensions..js (module.js:579:10)
[v1]     at Module.load (module.js:487:32)
[v1]     at tryModuleLoad (module.js:446:12)
[v1]     at Function.Module._load (module.js:438:3)
[v1] [11:04:53] Serving directory www
[v1] { Error: Cannot find module './formats'
[v1]     at Function.Module._resolveFilename (module.js:469:15)
[v1]     at Function.Module._load (module.js:417:25)
[v1]     at Module.require (module.js:497:17)
[v1]     at require (internal/module.js:20:19)
[v1]     at Object.<anonymous> (App/node_modules/qs/lib/stringify.js:4:15)
[v1]     at Module._compile (module.js:570:32)
[v1]     at Object.Module._extensions..js (module.js:579:10)
[v1]     at Module.load (module.js:487:32)
[v1]     at tryModuleLoad (module.js:446:12)
[v1]     at Function.Module._load (module.js:438:3) code: 'MODULE_NOT_FOUND' }
[ERROR] A utility CLI has unexpectedly closed (exit code 0).

Seems like it is something with the gulp file, so I’ve tried to delete all the contents in it, but no luck.
Here are my setup:

Ionic:

   ionic (Ionic CLI) : 4.0.6
   Ionic Framework   : ionic1 1.3.1
   @ionic/v1-toolkit : 1.0.5

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 6.4.0, ios 4.5.2

System:

   Android SDK Tools : 26.1.1
   ios-deploy        : 1.9.1
   ios-sim           : 5.0.13
   NodeJS            : v6.11.4 
   npm               : 3.10.10
   OS                : macOS High Sierra
   Xcode             : Xcode 9.4.1 Build version 9F2000