var npmi = require('./../npmi');
var path = require('path');


var options = {
	name: 'kevoree-group-websocket',
	version: '0.0.4',
	path: '.',
	forceInstall: false,
    localInstall: false
};
npmi(options, function (err, result) {
	if (err) {
		if 		(err.code === npmi.LOAD_ERR) 	console.log('npm load error');
		else if (err.code === npmi.INSTALL_ERR) console.log('npm install error');
		return console.log(err.message);
	}

	// installed
	console.log(options.name+'@'+options.version+' installed successfully in '+path.resolve(options.path));
});
@@ -108,86 +108,8 @@
 ket'
-,%0A%09version: '0.0.4',%0A%09path: '.',%0A%09forceInstall: false,%0A    localInstall: false
 %0A%7D;%0A
@@ -139,16 +139,8 @@
 (err
-, result
 ) %7B%0A
@@ -153,191 +153,18 @@
 rr) 
-%7B%0A%09%09if %09%09(err.code === npmi.LOAD_ERR) %09console.log('npm load error');%0A%09%09else if (err.code === npmi.INSTALL_ERR) console.log('npm install error');%0A%09%09return console.log(err.message);%0A%09%7D
+throw err;
 %0A%0A%09/
@@ -206,28 +206,8 @@
 me+'
-@'+options.version+'
  ins
@@ -229,40 +229,9 @@
 ully
- in '+path.resolve(options.path)
+'
 );%0A%7D

update test