Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: getaddrinfo ENOTFOUND validator.w3.org validator.w3.org:80 #4

Open
ravishankarbanka opened this issue Oct 30, 2018 · 1 comment

Comments

@ravishankarbanka
Copy link

Hi,
I am not able to start the gulp server, it seems like it is trying to connect to validator.w3.org as I am behing corporate proxy. it is not able to connect.

can I disable this validation?

Regards,

@ravishankarbanka
Copy link
Author

I commented line 5 and 17. hope to keep going hope the changes are fine...


var gulp = require('gulp'),
    gutil = require('gulp-util'),
    stylish = require('jshint-stylish'),
    jshint = require('gulp-jshint'),
    //w3cjs = require('gulp-w3cjs'), --- line 5
    prettify = require('gulp-jsbeautifier'),
    webserver = require('gulp-webserver');

gulp.task('js', function() {
  return gulp.src('builds/development/js/myscript.js')
    .pipe(jshint('./.jshintrc'))
    .pipe(jshint.reporter('jshint-stylish'));
});

gulp.task('html', function() {
    gulp.src('builds/development/*.html');
   //     .pipe(w3cjs());   //---line 17
});

gulp.task('css', function() {
    gulp.src('builds/development/css/*.css')
});

gulp.task('watch', function() {
    gulp.watch('builds/development/js/**/*', ['js']);
    gulp.watch('builds/development/css/*.css', ['css']);
    gulp.watch(['builds/development/*.html',
        'builds/development/views/*.html'
    ], ['html']);
});

gulp.task('webserver', function() {
    gulp.src('builds/development/')
        .pipe(webserver({
            livereload: true,
            open: true
        }));
});

gulp.task('default', ['watch', 'html', 'js', 'css', 'webserver']);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant