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

Fix nodes.install.installing message id

This commit is contained in:
Nick O'Leary 2015-07-02 13:25:15 +01:00
parent 35cd7cf2b8
commit 6cfa4976fe

View File

@ -52,7 +52,7 @@ function start() {
if (settings.httpAdminRoot !== false) { if (settings.httpAdminRoot !== false) {
require("./api").init(app,storage); require("./api").init(app,storage);
} }
if (log.metric()) { if (log.metric()) {
runtimeMetricInterval = setInterval(function() { runtimeMetricInterval = setInterval(function() {
reportMetrics(); reportMetrics();
@ -66,7 +66,7 @@ function start() {
log.info(log._("server.loading")); log.info(log._("server.loading"));
redNodes.init(settings,storage,app); redNodes.init(settings,storage,app);
return redNodes.load().then(function() { return redNodes.load().then(function() {
var i; var i;
var nodeErrors = redNodes.getNodeList(function(n) { return n.err!=null;}); var nodeErrors = redNodes.getNodeList(function(n) { return n.err!=null;});
var nodeMissing = redNodes.getNodeList(function(n) { return n.module && n.enabled && !n.loaded && !n.err;}); var nodeMissing = redNodes.getNodeList(function(n) { return n.module && n.enabled && !n.loaded && !n.err;});
@ -171,8 +171,8 @@ function installModule(module) {
reject(err); reject(err);
return; return;
} }
log.info(i18n._("nodes.install.installing",{name: module})); log.info(i18n._("server.install.installing",{name: module}));
var installDir = settings.userDir || process.env.NODE_RED_HOME || "."; var installDir = settings.userDir || process.env.NODE_RED_HOME || ".";
var child = child_process.exec('npm install --production '+module, var child = child_process.exec('npm install --production '+module,
{ {