Read the statement by Michael Teeuw here.
No authorization at command input
-
Hello everyone, I get the message “no permission” when I run a command. for example npm run config:check. I have the latest version of Magic Mirror installed and running on a Pi 3b+. Starting the SW works fine. Do you know of a paper on this? do you need more info?
-
@Tavros can u show the output of the
npm run config:check
-
pi@raspberrypi:~/MagicMirror $ npm run config:check
magicmirror@2.19.0 config:check /home/pi/MagicMirror > node js/check_config.js
/home/pi/MagicMirror/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2383 const require$1 = Module.createRequire((typeof document === ‘undefined’ ? new equire(‘u’ + ‘rl’).URL) ('file: filename).href : (document.currentScript & document.currentScript.src || new URL(‘eslintrc.cjs’, document.baseURI).href)) A
TypeError: Module.createRequire is not a function at Object. (/home/pi/MagicMirror/node_modules/@eslint/eslintrc/
st/eslintrc.cjs:2383:26)
at Module._compile (internal/modules/cjs/loader.js:776:30) at Object. Module._extensions…js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js: 653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function. Module._load (internal1/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js: 690:17) at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous (/home/pi/MagicMirror/node_modules/eslint/lib/cli-en
ne/cli-engine.js:33:5) at Module._compile (internal/modules/cjs/loader.js:776:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
I
npm ERR! magicmirror@2.19.0 config:check:
node js/check_config.jsnpm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.19.0 config:check script. npm ERR! This is probably not a problem with npm. There is likely additional 1 ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!
/home/pi/. npm/_logs/2022-04-04T17_07_40_905Z-debug.log
-
sorry couldn’t add a picture. can you read something there?
-
@Tavros said in No authorization at command input:
Module.createRequire is not a function at Object.
this is a known issue
see
https://github.com/MichMich/MagicMirror/issues/2772 -
@sdetweil thanks i did it. but the message still appears at "config/config.js
-
@Tavros show the message again
-
@sdetweil
pi@raspberrypi:-/MagicMirror S config/config.js bash: config/config.js: Keine Berechtigungpi@raspberrypi:~/MagicMirror $ config/ bash: config/: Ist ein Verzeichnis
pi@raspberrypi:~/MagicMirror config.js
bash: config.js: Kommando nicht gefunden.
pi@raspberrypi:~/MagicMirror $ npm run config: check
magicmirror@2.19.0 config:check > node js/check_config.js
[04.04.2022 21:58.25.956] [INFO] Checking file /home/pi/MagicMirror/config/config.js
[04.04.2022 21:58.26.243] [INFO] Your configuration file doesn’t contain syntax errors :) pi@raspberrypi:~/MagicMirror $
-
@Tavros you don’t EXECUTE config.js, it is USED by magic mirror
npm startyou can edit it, just a text file
nano config.js -
@sdetweil okaaayy i’m a beginner. I’ll try it tomorrow then. Thanks!
-
@sdetweil as works, thank you!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login