Note: You can downgrade to your old version by running: npm install --save --save-exact ionic@3.9.2
I didn’t have time to deal with app-scripts problem, so I downgraded CLI to 3.9.2. After that I’m getting this message all the time, even after installing 3.10.3 again:
There are two Ionic CLI installs - a global and a local one. Run npm list --depth=0 in your project to see the local one, npm install ionic@latest to install the latest locally in the project.
Error: Cannot find module ‘sax’
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (/MyApp/node_modules/elementtree/lib/parsers/sax.js:3:11)
at Module._compile (module.js:569:30)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
Here is my ionic info after installing latest local cli:
I guess the CLI team didn’t feel confident that they could guarantee maintaining backwards compatibility, so decided to pin a specific version for each project.