I'm trying to install Ionic on Ubuntu 12.04, but I get this error message:

```
node.js:201
    throw e; // process.nextTick error, or 'error' event on first tick
          ^
TypeError: Object #<Object> has no method 'tmpDir'
    at /usr/local/lib/node_modules/npm/node_modules/osenv/osenv.js:49:13
    at Object.tmpdir (/usr/local/lib/node_modules/npm/node_modules/osenv/osenv.js:14:15)
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/config/defaults.js:76:18)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:32)
    at Function._load (module.js:308:12)
    at Module.require (module.js:354:17)
    at require (module.js:370:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/config/core.js:4:18)

```

My node version is v0.6.12.