I'd missed a space, so gulp prep was trying to do "npm installdel" instead of "npm install del", which means that the command errors out. Don't know why it seemed to work before though.
This commit is contained in:
Jimmy Thomson 2015-02-07 21:13:40 -08:00
Родитель c21d8c0bcd
Коммит a1850f8d00
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -19,10 +19,12 @@ gulp.task("install", function (callback) {
var modules = ["del", "gulp", "typescript", "ncp", "q"];
var asyncLoop = function(idx) {
if (idx < modules.length) {
exec("npm install" + modules[idx], { cwd: ".."}, function(error, stdout, stderr) {
exec("npm install " + modules[idx], { cwd: ".."}, function(error, stdout, stderr) {
if (!error) {
asyncLoop(idx + 1);
} else {
console.warn(stdout);
console.warn(stderr);
callback(error);
}
})