Перестал работать GULP, верстал сайт, и вдруг перестал работать gulp, никак не могу запустить, обновил nodejs, не помогло
_______________
var gulp = require('gulp'),
gutil = require('gulp-util' ),
sass = require('gulp-sass'),
browserSync = require('browser-sync'),
cleanCSS = require('gulp-clean-css'),
autoprefixer = require('gulp-autoprefixer'),
bourbon = require('node-bourbon'),
ftp = require('vinyl-ftp');
gulp.task('browser-sync', function() {
browserSync({
proxy: "localhost",
notify: false
});
});
gulp.task('sass', function() {
return gulp.src('catalog/view/theme/productshome/stylesheet/stylesheet.sass')
.pipe(sass({
includePaths: bourbon.includePaths
}).on('error', sass.logError))
.pipe(autoprefixer(['last 15 versions']))
.pipe(cleanCSS())
.pipe(gulp.dest('catalog/view/theme/productshome/stylesheet/'))
.pipe(browserSync.reload({stream: true}))
});
gulp.task('watch', ['sass', 'browser-sync'], function() {
gulp.watch('catalog/view/theme/productshome/stylesheet/stylesheet.sass', ['sass']);
gulp.watch('catalog/view/theme/productshome/template/**/*.tpl', browserSync.reload);
gulp.watch('catalog/view/theme/productshome/js/**/*.js', browserSync.reload);
gulp.watch('catalog/view/theme/productshome/libs/**/*', browserSync.reload);
});
gulp.task('deploy', function() {
var conn = ftp.create({
host: 'hostname.com',
user: 'username',
password: 'userpassword',
parallel: 10,
log: gutil.log
});
var globs = [
'catalog/view/theme/productshome/**'
];
return gulp.src(globs, {buffer: false})
.pipe(conn.dest('/path/to/folder/on/server'));
});
gulp.task('default', ['watch']);
"browser-sync": "^2.18.8",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^3.1.1",
"gulp-clean-css": "^2.0.12",
"gulp-sass": "^2.3.2",
"gulp-util": "^3.0.7",
"node-bourbon": "^4.2.8",
"vinyl-ftp": "^0.5.0"