How do I require("google-spreadsheet") in Ionic2?


I’ve been searching for a while for tutorials about how to import this module to angular2 - Ionic2 to be specific - but without luck.

Is there any tutorial on how to implement this module to ionic 2?

I tried this but with no success:

import * as googlespreadsheet from 'google-spreadsheet';

which produced the error:

error: Cannot find module 'google-spreadsheet'.


let GoogleSpreadsheet = require("google-spreadsheet");

which produced the error on the CLI:

cannot find the name require

but did not appear on the atom text editor…