1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Remove new lines from version

This commit is contained in:
Anna Thomas 2014-12-04 13:16:24 +00:00
parent 35b3912808
commit 851048077c

View File

@ -163,8 +163,9 @@ function installModule(module) {
}
} else {
var grandchild = child_process.exec('npm view '+module+' version', function(err, stdin, stdout) {
util.log("[red] Installed module: "+module+":"+stdin);
resolve(redNodes.addModule(module,stdin).then(reportAddedModules));
var version = stdin.replace(/\s/g, "");
util.log("[red] Installed module: "+module+":"+version);
resolve(redNodes.addModule(module,version).then(reportAddedModules));
});
}
});