MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

MMM-GoogleDriveSlideShow npm-install shows no progress



  • Hello , I would like to user this module, https://github.com/clegallic/MMM-GoogleDriveSlideShow

    It was fine for git clone operation, after that I tried to jump second step for “npm install” but it’s waiting 20 minutes, no progress.

    The screen was just like that :

    PS C:\Users\Emrah Aslan\D...\modules\MMM-GoogleDriveSlideShow> npm install
    [ .................] \ fetchMetadata: sill pacote range manifest for debug@4 fetched in 106ms
    

    BTW I created credential.json file and put under secret folder.

    I believe without that , I couldn’t run

    cd ~/MagicMirror/modules/MMM-GooglePhotos
    node generate_token.js

    PS C:\modules\MMM-GoogleDriveSlideShow> node generate-auth-token.js
    internal/modules/cjs/loader.js:968
      throw err;
      ^
    
    Error: Cannot find module 'googleapis'
    Require stack:
    - C:\modules\MMM-GoogleDriveSlideShow\generate-auth-token.js
    ?[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)?[39m
    ?[90m    at Function.Module._load (internal/modules/cjs/loader.js:841:27)?[39m
    ?[90m    at Module.require (internal/modules/cjs/loader.js:1025:19)?[39m
    ?[90m    at require (internal/modules/cjs/helpers.js:72:18)?[39m
        at Object. (C:\Users\Emrah Aslan\Desktop\arneca\SmartWall\smartwall\modules\MMM-GoogleDriveSlideShow\generate-auth-token.js:3:18)
    ?[90m    at Module._compile (internal/modules/cjs/loader.js:1137:30)?[39m
    ?[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)?[39m
    ?[90m    at Module.load (internal/modules/cjs/loader.js:985:32)?[39m
    ?[90m    at Function.Module._load (internal/modules/cjs/loader.js:878:14)?[39m
    ?[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)?[39m {
      code: ?[32m'MODULE_NOT_FOUND'?[39m,
      requireStack: [
        ?[32m'C:\\Users\\Emrah Aslan\\Desktop\\arneca\\SmartWall\\smartwall\\modules\\MMM-GoogleDriveSlideShow\\generate-auth-token.js'?[39m
      ]
    }
    

    Guys, Please help me on this.



  • @emrah_asl did u do the npm install in the module folder like the install instructions say?



  • @sdetweil sorry, missed problem above
    in the module folder erase package-lock.json if it exists and remove the node_modules folder, and then try npm install again



  • Hi @sdetweil I erased packahe-lock.jon file. Afterwards I typed npm-install still locked.

    PS C:\....\modules\MMM-GooglePhotos> npm install
    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    npm WARN deprecated har-validator@5.1.5: this library is no longer supported
    [ .................] \ fetchMetadata: sill pacote range manifest for p-limit@^2.0.0 fetched in 217ms
    

    Waiting here.



  • @emrah_asl note I had a typo, package-lock.json

    no idea why the delay



  • I’m working with yarn instead of npm I will let you know result



  • I am not sure why it is not work, but it works with yarn install

    thanks for your help


Log in to reply