Unable to find module xmlbuilder when I'm installing ionic '


I can not correct this error. Can someone tell me why? Thanks.

Error: Cannot find module 'xmlbuilder'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object. (/usr/local/lib/node_modules/ionic/node_modules/xml2js/lib/xml2js.js:12:13)
    at Object. (/usr/local/lib/node_modules/ionic/node_modules/xml2js/lib/xml2js.js:436:4)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
asked by Francisco Possetto 15.02.2016 в 21:30

1 answer


The module that you indicate seems to be from Apache Cordova, you comment that you are new using ionic ,

I recommend you install Apache Cordova

>npm install -g cordova
answered by 15.02.2016 в 22:42