(CLI, module_name, opts, cb)
| 163 | }; |
| 164 | |
| 165 | function 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 |
| 181 | function getNPMCommandLine(module_name, install_path) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…