Ionic cli 3.10.3 - Error: Cannot find module 'inquirer’

These CLI updates are becoming slightly painful - can someone help me fix this? It happens on ionic serve

Error: Cannot find module 'inquirer’
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 …/node_modules/ionic/node_modules/@ionic/cli-utils/index.js:94:80
at code: ‘MODULE_NOT_FOUND’ }

I can’t run ionic info because I get the same error…

1 Like

rm -rf node_modules then npm install fixed this for me. I probably should have tried that before posting!


Thanks for posting this. Worked like a charm.