MCPcopy Create free account
hub / github.com/Unitech/pm2 / install

Function install

lib/API/Modules/NPM.js:165–178  ·  view source on GitHub ↗
(CLI, module_name, opts, cb)

Source from the content-addressed store, hash-verified

163};
164
165function install(CLI, module_name, opts, cb) {
166 moduleExistInLocalDB(CLI, module_name, function (exists) {
167 if (exists) {
168 Common.logMod('Module already installed. Updating.');
169
170 Rollback.backup(module_name);
171
172 return uninstall(CLI, module_name, function () {
173 return continueInstall(CLI, module_name, opts, cb);
174 });
175 }
176 return continueInstall(CLI, module_name, opts, cb);
177 })
178}
179
180// Builtin Node Switch
181function getNPMCommandLine(module_name, install_path) {

Callers

nothing calls this directly

Calls 3

moduleExistInLocalDBFunction · 0.85
continueInstallFunction · 0.85
uninstallFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…