This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Installs NPM packages from a generated list | |
// 1. Generate the list with ls node_modules > modules.txt | |
// 2. Run node npm-one-by-one.js | |
// This is primarily useful for populating a Nexus proxy when npm install sometimes fails | |
const fs = require('fs') | |
const cp = require('child_process') | |
// The maximum time we try to install any package before giving an error | |
const TIMEOUT_SECONDS = 30 |
NewerOlder