Giter Site home page Giter Site logo

gulp-google-drive's People

Contributors

jjclark1982 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gulp-google-drive's Issues

TypeError: undefined is not a function

I'm getting TypeError: undefined is not a function on drive.src(). node_modules/gulp-google-drive exists with all its dependencies, and so does index.js with the src() function. This is my setup:

var config = {
    clientId: '*****.apps.googleusercontent.com',
    clientSecret: '*****',
    refreshToken: '*****'
};
var drive = require('gulp-google-drive', config);

gulp.task('fetch-assets', function(done) {
    **drive.src('*****')**
        .pipe(cached('assets'))
        .pipe(drive.fetch)
        .pipe(remember('assets'))
        .pipe(gulp.dest('public/'))
});

Also, when i execute your test script I get the following error:

stream.js:94
      throw er; // Unhandled stream error in pipe.
            ^
Error: invalid_grant
  at Request._callback (/Applications/XAMPP/xamppfiles/htdocs/CCV_handhavingskompas/trunk/frontend/node_modules/gulp-google-drive/node_modules/googleapis/node_modules/google-auth-library/lib/transporters.js:78:15)
  at Request.self.callback (/Applications/XAMPP/xamppfiles/htdocs/CCV_handhavingskompas/trunk/frontend/node_modules/gulp-google-drive/node_modules/googleapis/node_modules/google-auth-library/node_modules/request/request.js:198:22)
  at Request.emit (events.js:110:17)
  at Request.<anonymous> (/Applications/XAMPP/xamppfiles/htdocs/CCV_handhavingskompas/trunk/frontend/node_modules/gulp-google-drive/node_modules/googleapis/node_modules/google-auth-library/node_modules/request/request.js:1057:14)
  at Request.emit (events.js:129:20)
  at IncomingMessage.<anonymous> (/Applications/XAMPP/xamppfiles/htdocs/CCV_handhavingskompas/trunk/frontend/node_modules/gulp-google-drive/node_modules/googleapis/node_modules/google-auth-library/node_modules/request/request.js:1003:12)
  at IncomingMessage.emit (events.js:129:20)
  at _stream_readable.js:908:16
  at process._tickCallback (node.js:355:11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.