• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-GoogleDocs-Notes

Scheduled Pinned Locked Moved Unsolved Troubleshooting
8 Posts 2 Posters 610 Views 2 Watching
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 Offline
    Pierre666
    last edited by Oct 13, 2021, 11:57 AM

    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 Oct 13, 2021, 12:04 PM Reply Quote 0
    • S Away
      sdetweil @Pierre666
      last edited by sdetweil Oct 13, 2021, 12:04 PM Oct 13, 2021, 12:04 PM

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

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      P 1 Reply Last reply Oct 13, 2021, 12:14 PM Reply Quote 0
      • P Offline
        Pierre666 @sdetweil
        last edited by Oct 13, 2021, 12:14 PM

        @sdetweil i did

        S 1 Reply Last reply Oct 13, 2021, 12:19 PM Reply Quote 0
        • S Away
          sdetweil @Pierre666
          last edited by Oct 13, 2021, 12:19 PM

          @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

          How to add modules

          learning how to use browser developers window for css changes

          P 1 Reply Last reply Oct 13, 2021, 12:23 PM Reply Quote 0
          • P Offline
            Pierre666 @sdetweil
            last edited by Oct 13, 2021, 12:23 PM

            @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 Oct 13, 2021, 12:41 PM Reply Quote 0
            • S Away
              sdetweil @Pierre666
              last edited by Oct 13, 2021, 12:41 PM

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

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              P 1 Reply Last reply Oct 13, 2021, 12:57 PM Reply Quote 0
              • P Offline
                Pierre666 @sdetweil
                last edited by Oct 13, 2021, 12:57 PM

                @sdetweil after i deleted and reinstall it, it works

                S 1 Reply Last reply Oct 13, 2021, 12:58 PM Reply Quote 0
                • S Away
                  sdetweil @Pierre666
                  last edited by Oct 13, 2021, 12:58 PM

                  @pierre666 weird

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    1/8
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy