Read the statement by Michael Teeuw here.
Complete Walkthrough - Install MagicMirror on a PC - Windows 7/10
-
@sdetweil yes i do
-
@airart what version of node and npm are installed
npm -v
node -v -
@sdetweil npm 7.14.0 , node 14.17.0
-
@airart interesting
ok, lets try to start over that step
cd MagicMirror del package-lock.json rd /q/s node_modules npm install only=prod
we will want the name of the log file when it finishes in case
-
@sdetweil only the name ?
2021-05-28T12_56_04_242Z-debug0 verbose cli [ 0 verbose cli 'C:\\Program Files\\nodejs\\node.exe', 0 verbose cli 'C:\\Users\\gizmo\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', 0 verbose cli 'install', 0 verbose cli 'only=prod' 0 verbose cli ] 1 info using npm@7.14.0 2 info using node@v14.17.0 3 timing npm:load:whichnode Completed in 8ms 4 timing config:load:defaults Completed in 9ms 5 timing config:load:file:C:\Users\gizmo\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 8ms 6 timing config:load:builtin Completed in 9ms 7 timing config:load:cli Completed in 9ms 8 timing config:load:env Completed in 3ms 9 timing config:load:file:C:\Users\gizmo\MagicMirror\.npmrc Completed in 2ms 10 timing config:load:project Completed in 5ms 11 timing config:load:file:C:\Users\gizmo\.npmrc Completed in 1ms 12 timing config:load:user Completed in 1ms 13 timing config:load:file:C:\Users\gizmo\AppData\Roaming\npm\etc\npmrc Completed in 1ms 14 timing config:load:global Completed in 2ms 15 timing config:load:validate Completed in 1ms 16 timing config:load:credentials Completed in 10ms 17 timing config:load:setEnvs Completed in 12ms 18 timing config:load Completed in 61ms 19 timing npm:load:configload Completed in 61ms 20 timing npm:load:setTitle Completed in 3ms 21 timing npm:load:setupLog Completed in 11ms 22 timing npm:load:cleanupLog Completed in 13ms 23 timing npm:load:configScope Completed in 0ms 24 timing npm:load:projectScope Completed in 4ms 25 timing npm:load Completed in 104ms 26 timing config:load:flatten Completed in 20ms 27 timing arborist:ctor Completed in 3ms 28 timing arborist:ctor Completed in 1ms 29 timing idealTree:init Completed in 122ms 30 timing idealTree Completed in 150ms 31 timing command:install Completed in 234ms 32 verbose stack Error: Invalid tag name "only=prod": Tags may not have any characters that encodeURIComponent encodes. 32 verbose stack at invalidTagName (C:\Users\gizmo\AppData\Roaming\npm\node_modules\npm\node_modules\npm-package-arg\npa.js:94:15) 32 verbose stack at fromRegistry (C:\Users\gizmo\AppData\Roaming\npm\node_modules\npm\node_modules\npm-package-arg\npa.js:299:13) 32 verbose stack at resolve (C:\Users\gizmo\AppData\Roaming\npm\node_modules\npm\node_modules\npm-package-arg\npa.js:84:12) 32 verbose stack at npa (C:\Users\gizmo\AppData\Roaming\npm\node_modules\npm\node_modules\npm-package-arg\npa.js:55:10) 32 verbose stack at C:\Users\gizmo\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:474:50 32 verbose stack at Array.map (<anonymous>) 32 verbose stack at Arborist.[add] (C:\Users\gizmo\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:471:28) 32 verbose stack at Arborist.[applyUserRequestsToNode] (C:\Users\gizmo\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:446:23) 32 verbose stack at Arborist.[applyUserRequests] (C:\Users\gizmo\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:402:43) 32 verbose stack at Arborist.buildIdealTree (C:\Users\gizmo\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:217:37) 33 verbose cwd C:\Users\gizmo\MagicMirror 34 verbose Windows_NT 10.0.18362 35 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gizmo\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "only=prod" 36 verbose node v14.17.0 37 verbose npm v7.14.0 38 error code EINVALIDTAGNAME 39 error Invalid tag name "only=prod": Tags may not have any characters that encodeURIComponent encodes. 40 verbose exit 1
-
@airart sorry, typo
–only=prod
-
@sdetweil ok done , but no log is generated
npm startsame errors :-(
-
@airart there is always a log
in the users home folder .npm/logs
I will recheck my windows env too
npm install --loglevel verbose
should write a file in the local folder
npm-debug.log
when I start my MM i get
C:\Users\sdetw\MagicMirror>npm start > magicmirror@2.15.0 start C:\Users\sdetw\MagicMirror > electron js/electron.js [28.05.2021 09:25.27.486] [LOG] Starting MagicMirror: v2.15.0
-
@sdetweil i try to find this .log but no one is generating … i search in all of my hdd …
when i type npm startC:\Users\gizmo\MagicMirror>npm start > magicmirror@2.15.0 start > node_modules/.bin/electron js/electron.js "node_modules" non è riconosciuto come comando interno o esterno, un programma eseguibile o un file batch.
and there’s no electron js FOLDER in .bin FOLDER
-
@airart do again
npm install --loglevel verbose