Reputation: 2458
I am following instrucitons on how to start building Cordova apps for android using ionic. When i do "ionic platform add android" on the command line I get an error Error: Cannot find module 'sax'
Cannot find any solutions to that. Does anyone have an idea where this comes from?
Thanks!
Upvotes: 1
Views: 2342
Reputation: 645
I had the same problem... in the error description I saw that it was refering "c:\users\my-user.cordova" folder... so I uninstalled cordova, manually erased that folder and installed cordova again, it works for me
Upvotes: 0
Reputation: 2458
I did originaly install it on powershell using npm install.
I didn't find any solutions so I just uninstalled ionic and cordova and reinstalled them both. That fixed the issue.
Upvotes: 2