node.js - Ionic installation after Ionic2 installation -


i tried install ionic2 no success, decided go ionic during process went bad , can't re-installl ionic , cordova.

after sudo npm install -g cordova ionic, tried run ionic , got:

xx@xxx:~/dev$ ionic info module.js:328     throw err;     ^  error: cannot find module 'xmlbuilder'     @ function.module._resolvefilename (module.js:326:15)     @ function.module._load (module.js:277:25)     @ module.require (module.js:354:17)     @ require (internal/module.js:12:17)     @ object.<anonymous> (/usr/local/lib/node_modules/ionic/node_modules/xml2js/lib/xml2js.js:12:13)     @ object.<anonymous> (/usr/local/lib/node_modules/ionic/node_modules/xml2js/lib/xml2js.js:436:4)     @ module._compile (module.js:410:26)     @ object.module._extensions..js (module.js:417:10)     @ module.load (module.js:344:32)     @ function.module._load (module.js:301:12) 

my versions are:

xx@xxx:~/dev$ npm -v 2.14.12 gal@xxx:~/dev$ nodejs -v v0.10.25 xx@xxx:~/dev$ node -v v4.2.6 

what worked me use

sudo npm install -g ionic@beta  cordova 

to install v2 version according link.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -