Установил на Windows-7x64 node.gs v6.9.4
После установил глобально bower 1.8.0 и Gulp CLI version 1.2.2
Захожу в папку проекта, запускаю запускаю npm run setup и после загрузки пакетов, выполняю gulp и получаю ошибку
$ gulp
[19:39:43] Using gulpfile D:\OpenServer\domains\dev.steklo-studia-driphon\sites\all\themes\griphon\gulpfile.js
[19:39:43] Starting 'css'...
[19:39:43] Starting 'fonts'...
[19:39:43] Starting 'watch'...
[19:39:43] Finished 'watch' after 41 ms
[19:39:43] Finished 'fonts' after 100 ms
[19:39:44] Finished 'css' after 1.17 s
[19:39:44] Starting 'serve'...
[19:39:44] Finished 'serve' after 15 ms
[19:39:44] Starting 'default'...
[19:39:44] Finished 'default' after 2.05 μs
[BS] [info] Proxying: dev.steklo-studia-driphon
[BS] Access URLs:
-------------------------------------
Local: localhost:3001
External: 192.168.1.54:3001
-------------------------------------
UI: localhost:3002
UI External: 192.168.1.54:3002
-------------------------------------
events.js:160
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
Вот мой config.json
{
"name": "griphon",
"description": "A theme based on Radix.",
"browserSyncProxy" : "http://dev.steklo-studia-driphon",
"bowerDir": "./bower_components",
"css": {
"file" : "griphon.style.scss",
"src": [
"scss/**/*.scss"
],
"dest": "assets/css",
"includePaths": [
"./bower_components/bootstrap-sass/assets/stylesheets",
"./bower_components/font-awesome/scss"
]
},
"js": {
"file" : "griphon.script.js",
"src": [
"assets/js/**/*.js"
],
"dest": "assets/js"
},
"images": {
"src": [
"assets/images/**/*"
],
"dest": "assets/images/"
},
"fonts": {
"src": [
"./bower_components/font-awesome/fonts/**.*"
],
"dest": "./assets/fonts/"
}
}
Вот package.json
{
"name": "griphon",
"description": "A theme based on Radix.",
"private": true,
"scripts": {
"setup": "npm install && bower install",
"postinstall": "find node_modules/ -name '*.info' -type f -delete"
},
"devDependencies": {
"browser-sync": "~2.7.4",
"imagemin-pngcrush": "~4.1.0",
"node-sass": "^3.4.1",
"gulp": "~3.9.0",
"gulp-autoprefixer": "^3.1.0",
"gulp-concat": "^2.6.0",
"gulp-imagemin": "~2.2.1",
"gulp-notify": "^2.2.0",
"gulp-plumber": "~1.0.1",
"gulp-rename": "^1.2.2",
"gulp-sass": "~2.0.1",
"gulp-sass-glob": "0.0.2",
"gulp-shell": "~0.4.1",
"gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^1.5.1",
"gulp-scss-lint": "~0.3.9",
"jshint": "~2.9.1",
"gulp-jshint": "~2.0.0"
}
}
Вот gulpfile.js
// Include gulp.
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var config = require('./config.json');
// Include plugins.
var sass = require('gulp-sass');
var imagemin = require('gulp-imagemin');
var pngcrush = require('imagemin-pngcrush');
var shell = require('gulp-shell');
var plumber = require('gulp-plumber');
var notify = require('gulp-notify');
var autoprefix = require('gulp-autoprefixer');
var glob = require('gulp-sass-glob');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var sourcemaps = require('gulp-sourcemaps');
var scssLint = require('gulp-scss-lint');
var jshint = require('gulp-jshint');
// CSS.
gulp.task('css', function() {
return gulp.src(config.css.src)
.pipe(glob())
.pipe(plumber({
errorHandler: function (error) {
notify.onError({
title: "Gulp",
subtitle: "Failure!",
message: "Error: <%= error.message %>",
sound: "Beep"
}) (error);
this.emit('end');
}}))
.pipe(sourcemaps.init())
.pipe(sass({
style: 'compressed',
errLogToConsole: true,
includePaths: config.css.includePaths
}))
.pipe(autoprefix('last 2 versions', '> 1%', 'ie 9', 'ie 10'))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest(config.css.dest))
.pipe(browserSync.reload({ stream: true, match: '**/*.css' }));
});
// Compress images.
gulp.task('images', function () {
return gulp.src(config.images.src)
.pipe(imagemin({
progressive: true,
svgoPlugins: [{ removeViewBox: false }],
use: [pngcrush()]
}))
.pipe(gulp.dest(config.images.dest));
});
// Fonts.
gulp.task('fonts', function() {
return gulp.src(config.fonts.src)
.pipe(gulp.dest(config.fonts.dest));
});
// Watch task.
gulp.task('watch', function() {
gulp.watch(config.css.src, ['css']);
gulp.watch(config.images.src, ['images']);
});
// Static Server + Watch
gulp.task('serve', ['css', 'fonts', 'watch'], function() {
browserSync.init({
proxy: config.browserSyncProxy
});
});
// Run drush to clear the theme registry.
gulp.task('drush', shell.task([
'drush cache-clear theme-registry'
]));
// SCSS Linting.
gulp.task('scss-lint', function() {
return gulp.src([config.css.src])
.pipe(scssLint())
.pipe(scssLint.format())
.pipe(scssLint.failOnError());
});
// JS Linting.
gulp.task('js-lint', function() {
return gulp.src(config.js.src)
.pipe(jshint())
.pipe(jshint.reporter('default'));
});
// Default Task
gulp.task('default', ['serve']);
Подскажите пожалуйста в чем может быть причина? Уже и node.js переустанавливал и gulp с bower ничего не помогает.
До перехода на openserver все работало, а сейчас нет.