Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}, function (err) {
if (err) return FormideClient.log.error(err);
npm.commands.install(deps, function (err, data) {
if (err) return FormideClient.log.error(err);
// restart app
});
npm.on("log", function (message) {
console.log(message);
});
});
});
npm.load(function(err) {
npm.commands.install(['.'], function(er, data) {
if(er !== undefined && er !== null) {
console.log(er);
throw 'Error running NPM install';
} else {
cb();
}
});
npm.on("log", function (message) {
// log the progress of the installation
console.log(message);
});
});
}
if (err) {
console.log(err);
} else {
console.log(data);
}
});
});
npm.on("log", function (message) {
// log the progress of the installation
console.log(message);
});
});
}, function (err) {
// catch errors
npm.commands.install(createNpmDependenciesArray('./tests/package'), function (er, data) {
// log the error or data
});
npm.on("log", function (message) {
// log the progress of the installation
console.log(message);
});
});
this.initModules = function(cb) {
npm.on('log', function(message) {
pb.log.info(message);
});
HtmlEncoder.EncodeType = 'numerical';
pb.Localization.init(cb);
};
npm.load(function (loadErr) {
if (loadErr) { throw loadErr; }
npm.commands.install(herokuDeps, function (installErr) {
if (installErr) { throw installErr; }
});
npm.on("log", function (msg) {
console.log(msg);
});
});
}, function(err) {
if (err) return handleError(err);
npm.commands.install(packages, function(err, message) {
if (err) return handleError(err);
console.log("NPM POSTINALL: %s", message);
});
npm.on("log", function(message) {
console.log("NPM POSTINALL: %s", message);
});
});
npm.load(function (err) {
if(err){
console.log('error installing from npm: ' + err);
}else{
npm.commands.install(__dirname,[SCOPE + "/" + options.api], function (er, data) {
if(er){
console.log('npm error: ' + er);
}
database = buildDatabaseFromFileSystem();
});
npm.on("log", function (message) {
console.log(message);
});
}
});
npm.load(configuration, function npmloaded(err) {
if (err) return fn(err);
npm.commands.install(
installation
, [packages + '@' + version]
, function installed(err) {
if (err) return fn(err);
return fn(undefined, require(location));
}
);
npm.on('log', function log() {
});
});
}
npm.load({ prefix: projectFolder }, (err) => {
if (err) return reject(err);
npm.commands.install([projectFolder], (error) => {
if (err) return reject(error);
debug('dependencies installed');
resolve();
});
npm.on('log', message => debug(message));
});
});