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 {
|
} else {
|
||||||
var grandchild = child_process.exec('npm view '+module+' version', function(err, stdin, stdout) {
|
var grandchild = child_process.exec('npm view '+module+' version', function(err, stdin, stdout) {
|
||||||
util.log("[red] Installed module: "+module+":"+stdin);
|
var version = stdin.replace(/\s/g, "");
|
||||||
resolve(redNodes.addModule(module,stdin).then(reportAddedModules));
|
util.log("[red] Installed module: "+module+":"+version);
|
||||||
|
resolve(redNodes.addModule(module,version).then(reportAddedModules));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user