Skip to content

Cannot find module 'gulp-open' #59

Description

@fernandofas

Hi all,

Just a quick question.

I installed Gulp-open with the following codes on gulpfiles.js:

gulp.task( 'open', function() {
var options = {
uri: uri,
app: 'chrome' || 'google chrome' // may need to sniff for Windows/OSX to determine Chrome string
};
gulp.src( './build/' )
.pipe( open( options ) );
});

I also have gulp-connect and gulp-yargs with the following:

var src = './build',
dist = './build',
baseURL = ( argv.production === undefined ) ? src : dist,
port = ( argv.production === undefined ) ? 8000 : 8001,
uri = 'http://localhost:' + port;

gulp.task( 'connect', function() {
connect.server( {
root: baseURL,
livereload: true,
port: port
} );
} );

I'm not sure what is happening, on the package.json the dependency is there, but gulp can't find it.

Any ideas what's happening?

Thank you in advance.

Kind regards,

Fernando Fas

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions