Read the statement by Michael Teeuw here.
MMM-GoogleDocs-Notes
-
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-NotesERROR: 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 $
-
@pierre666 did u do the npm install in the module folder after git clone?
-
@sdetweil i did
-
@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
-
@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
runnpm fund
for details25 vulnerabilities (1 low, 14 moderate, 10 high)
To address issues that do not require attention, run:
npm audit fixTo address all issues (including breaking changes), run:
npm audit fix --forceRun
npm audit
for details.
pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleDocs-Notes $ -
@pierre666 yeh, I think one of the libraries used has changed and has caused this failure.
-
@sdetweil after i deleted and reinstall it, it works
-
@pierre666 weird