Ionic installation after Ionic2 installation
<p>I tried to install Ionic2 with no success, so I decided to go back to Ionic but during the process something went bad and I can't re-installl the ionic and cordova.</p>

<p>after <code>sudo npm install -g cordova ionic</code>, I tried to run <code>ionic</code> and got:</p>

<pre><code>xx@xxx:~/dev$ ionic info
module.js:328
    throw err;
    ^

Error: Cannot find module 'xmlbuilder'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.&lt;anonymous&gt; (/usr/local/lib/node_modules/ionic/node_modules/xml2js/lib/xml2js.js:12:13)
    at Object.&lt;anonymous&gt; (/usr/local/lib/node_modules/ionic/node_modules/xml2js/lib/xml2js.js:436:4)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
</code></pre>

<p>my versions are:</p>

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