MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED MMM-GoogleDocs-Notes

    Troubleshooting
    2
    8
    266
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Pierre666 last edited by

      I try to do integrate GoogleDocs-Notes in my MM but
      I follow the intruductions on MMM-GoogleDocs-Notes, https://github.com/No3x/MMM-GoogleDocs-Notes

      ERROR: cannot find module ‘…/dotjs/validate’

      /MagicMirror/modules/MMM-GoogleDocs-Notes $ sudo -u pi – node authorize.js
      internal/modules/cjs/loader.js:905
      throw err;
      ^

      Error: Cannot find module ‘…/dotjs/validate’
      Require stack:

      • /home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/ajv/lib/compile/index.js
      • /home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/ajv/lib/ajv.js
      • /home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/har-validator/lib/promise.js
      • /home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/request/lib/har.js
      • /home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/request/request.js
      • /home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/request/index.js
      • /home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/google-auth-library/lib/transporters.js
      • /home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/google-auth-library/lib/auth/authclient.js
      • /home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/google-auth-library/lib/auth/oauth2client.js
      • /home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/google-auth-library/lib/auth/jwtclient.js
      • /home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/google-auth-library/lib/auth/googleauth.js
      • /home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/authorize.js
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
        at Function.Module._load (internal/modules/cjs/loader.js:746:27)
        at Module.require (internal/modules/cjs/loader.js:974:19)
        at require (internal/modules/cjs/helpers.js:93:18)
        at Object. (/home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/ajv/lib/compile/index.js:8:25)
        at Module._compile (internal/modules/cjs/loader.js:1085:14)
        at Object.Module._extensions…js (internal/modules/cjs/loader.js:1114:10)
        at Module.load (internal/modules/cjs/loader.js:950:32)
        at Function.Module._load (internal/modules/cjs/loader.js:790:12)
        at Module.require (internal/modules/cjs/loader.js:974:19) {
        code: ‘MODULE_NOT_FOUND’,
        requireStack: [
        ‘/home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/ajv/lib/compile/index.js’,
        ‘/home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/ajv/lib/ajv.js’,
        ‘/home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/har-validator/lib/promise.js’,
        ‘/home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/request/lib/har.js’,
        ‘/home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/request/request.js’,
        ‘/home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/request/index.js’,
        ‘/home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/google-auth-library/lib/transporters.js’,
        ‘/home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/google-auth-library/lib/auth/authclient.js’,
        ‘/home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/google-auth-library/lib/auth/oauth2client.js’,
        ‘/home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/google-auth-library/lib/auth/jwtclient.js’,
        ‘/home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/node_modules/google-auth-library/lib/auth/googleauth.js’,
        ‘/home/pi/MagicMirror/modules/MMM-GoogleDocs-Notes/authorize.js’
        ]
        }
        pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleDocs-Notes $
      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @Pierre666 last edited by sdetweil

        @pierre666 did u do the npm install in the module folder after git clone?

        Sam

        Create a working config
        How to add modules

        P 1 Reply Last reply Reply Quote 0
        • P
          Pierre666 @sdetweil last edited by

          @sdetweil i did

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @Pierre666 last edited by

            @pierre666 looks like something is broken in the version of the google-docs library this module uses. the module author will have to fix that. I would open an issue on the module GitHub page to inform the author

            Sam

            Create a working config
            How to add modules

            P 1 Reply Last reply Reply Quote 0
            • P
              Pierre666 @sdetweil last edited by

              @sdetweil the npm result
              sudo npm install
              npm WARN old lockfile
              npm WARN old lockfile The package-lock.json file was created with an old version of npm,
              npm WARN old lockfile so supplemental metadata must be fetched from the registry.
              npm WARN old lockfile
              npm WARN old lockfile This is a one-time fix-up, please be patient…
              npm WARN old lockfile
              npm WARN deprecated har-validator@5.1.3: this library is no longer supported
              npm WARN deprecated uuid@3.3.3: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
              npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
              npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
              npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
              npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)

              added 282 packages, and audited 283 packages in 2m

              18 packages are looking for funding
              run npm fund for details

              25 vulnerabilities (1 low, 14 moderate, 10 high)

              To address issues that do not require attention, run:
              npm audit fix

              To address all issues (including breaking changes), run:
              npm audit fix --force

              Run npm audit for details.
              pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleDocs-Notes $

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @Pierre666 last edited by

                @pierre666 yeh, I think one of the libraries used has changed and has caused this failure.

                Sam

                Create a working config
                How to add modules

                P 1 Reply Last reply Reply Quote 0
                • P
                  Pierre666 @sdetweil last edited by

                  @sdetweil after i deleted and reinstall it, it works

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sdetweil @Pierre666 last edited by

                    @pierre666 weird

                    Sam

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy