Unable to download file via Google Drive API
问题 Node.js v10.15.2, googleapis v40.0.0 I tried this const dest = fs.createWriteStream(`/Users/user/Downloads/${fileId}.mp4`); drive.files.get({ fileId, alt: 'media' }, { responseType: 'stream' }, (err, res) => { res.data.on('end', () => { console.log('Done downloading file!'); }) .on('error', console.error) .pipe(dest); }); And got error $ node . Files: 20140810_125633.mp4 (1SwYm5Z1zPczZnDulmsbA9wrEJ-JT-hwE) Getting started (0B3K2QXOGSOFRc3RhcnRlcl9maWxl) (node:62335)