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:
parent
35b3912808
commit
851048077c
@ -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));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user