I was having some trouble with this one as well. Can you show where your module is in your folder?

If it’s in the correct folder ~/MagicMirror/modules/MMM-GooglePhotos then try these lines in the terminal:

cd MagicMirror
cd modules
cd MMM-GooglePhotos
npm install

Then I was able to recopy the code to my config.js file and it worked.