Read the statement by Michael Teeuw here.
npm start problem ELIFECYCLE
-
@iNeusch edit the package.json, change the start line. remove the DISPLAY stuff…
leaving
./node_modules…not near my computer, phone is terrible for cut & paste
-
@sdetweil ok thanks :)
-
@iNeusch change
"start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
to this
"start": "./node_modules/.bin/electron js/electron.js",
-
I have exacthly the same problem Trying to install MM on Windows 10.
Followed the instructions, and got the DISPLAy errror. Followed the earlier instructions in this thread to clean it up. - no difference.
Followed these last instructions to remove the display, and new I get:
C:\Users\PC\MagicMirror>npm start
npm ERR! code EJSONPARSE
npm ERR! file C:\Users\PC\MagicMirror\package.json
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token . in JSON at position 172 while parsing near ‘…pts": {
npm ERR! JSON.parse “start”: ./node_modules/.bin/…’
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.Any help is appreciated, thanks.
-
@bert269 said in npm start problem ELIFECYCLE:
npm ERR! code EJSONPARSE
npm ERR! file C:\Users\PC\MagicMirror\package.jsonu have a typ0… quotes are required around things in json
-
Thank - that did the trick.
Appreciated!