* If npm is being run, log its version and proceed with the install.
()
| 189 | * If npm is being run, log its version and proceed with the install. |
| 190 | */ |
| 191 | function logNpmVersion() { |
| 192 | const npmVersion = getStdout('npm --version').trim(); |
| 193 | console.log( |
| 194 | green('Detected'), |
| 195 | cyan('npm'), |
| 196 | green('version'), |
| 197 | cyan(npmVersion) + green('. Installing packages...') |
| 198 | ); |
| 199 | } |
| 200 | |
| 201 | /** |
| 202 | * Checks if the local version of python is 2.7 or 3 |