Read the statement by Michael Teeuw here.
after update and upgrade raspberry and magic mirror
-
@sdetweil thanks
pi@raspberrypi:~/MagicMirror $ npm -v
1.4.21
(node:5164) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.and
pi@raspberrypi:~/MagicMirror $ node -v
v8.11.1 -
@fonfon said in after update and upgrade raspberry and magic mirror:
pi@raspberrypi:~/MagicMirror $ npm -v
1.4.21that is very old… please upgrade,
i have 2 systems, 1 is at 3.5.2 (still too old, thx will upgrade)
and 6.1.0use
curl -L https://npmjs.org/install.sh | sudo sh
-
@sdetweil thanks your command works great for upgrade !
but after i have the same problempi@raspberrypi:~ $ npm -v
6.6.0
pi@raspberrypi:~ $ cd MagicMirror/
pi@raspberrypi:~/MagicMirror $ npm startmagicmirror@2.6.0 start /home/pi/MagicMirror
sh run-start.shrun-start.sh: 4: run-start.sh: electron: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! magicmirror@2.6.0 start:sh run-start.sh
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the magicmirror@2.6.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-01-20T16_40_06_112Z-debug.log
pi@raspberrypi:~/MagicMirror $ -
@fonfon in the magic mirror folder
npm -i electron
-
@sdetweil command don’t work
-
@fonfon please add more info
-
@sdetweil for sure sorry
pi@raspberrypi:~/MagicMirror $ npm -i electron
Usage: npm
where is one of:
access, adduser, audit, bin, bugs, c, cache, ci, cit,
clean-install, clean-install-test, completion, config,
create, ddp, dedupe, deprecate, dist-tag, docs, doctor,
edit, explore, get, help, help-search, hook, i, init,
install, install-ci-test, install-test, it, link, list, ln,
login, logout, ls, org, outdated, owner, pack, ping, prefix,
profile, prune, publish, rb, rebuild, repo, restart, root,
run, run-script, s, se, search, set, shrinkwrap, star,
stars, start, stop, t, team, test, token, tst, un,
uninstall, unpublish, unstar, up, update, v, version, view,
whoaminpm -h quick help on
npm -l display full usage info
npm help search for help on
npm help npm involved overviewSpecify configs in the ini-formatted file:
/home/pi/.npmrc
or on the command line via: npm --key value
Config info can be viewed via: npm help confignpm@6.6.0 /usr/lib/node_modules/npm
pi@raspberrypi:~/MagicMirror $
-
-
-
great feedback , thank you
please mark your issue resolved…