KasparTr
KasparTr

Reputation: 2458

Building ionic, cordova app I get an Error: Cannot find module 'sax'

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

Answers (3)

ezabaw
ezabaw

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

KasparTr
KasparTr

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

niklas
niklas

Reputation: 3011

try running npm install in your projects directory

Upvotes: 0

Related Questions