A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Error with dependencies, but it's different then the other ones just posted?!?!?
-
@tcsabina awesome thanks. Ill get on that after work today
-
So I ran from the MagicMirror directory and not from it:
pi@raspberrypi:~ $ npm -v 1.4.21 (node:1633) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. pi@raspberrypi:~ $ node -v v8.11.1 pi@raspberrypi:~ $ cd MagicMirror pi@raspberrypi:~/MagicMirror $ npm -v 1.4.21 (node:1641) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. pi@raspberrypi:~/MagicMirror $ node -v v8.11.1
I hope this helps. If I screwed up somehow let me know.
-
-
I ran it, and I have a feeling I screw up:
Not from MagicMirror:
pi@raspberrypi:~ $ npm i -g npm (node:2262) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. npm ERR! tar.unpack untar error /home/pi/.npm/npm/6.10.1/package.tgz npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/npm' npm ERR! { Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/npm' npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/local/lib/node_modules/npm', npm ERR! fstream_type: 'Directory', npm ERR! fstream_path: '/usr/local/lib/node_modules/npm', npm ERR! fstream_class: 'DirWriter', npm ERR! fstream_stack: npm ERR! [ '/usr/lib/nodejs/fstream/lib/dir-writer.js:35:25', npm ERR! '/usr/lib/nodejs/mkdirp/index.js:46:53', npm ERR! 'FSReqWrap.oncomplete (fs.js:152:21)' ] } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! System Linux 4.19.57-v7+ npm ERR! command "/usr/bin/node" "/usr/bin/npm" "i" "-g" "npm" npm ERR! cwd /home/pi npm ERR! node -v v8.11.1 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/npm npm ERR! syscall mkdir npm ERR! fstream_path /usr/local/lib/node_modules/npm npm ERR! fstream_type Directory npm ERR! fstream_class DirWriter npm ERR! code EACCES npm ERR! errno -13 npm ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/npm' npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/dir-writer.js:35:25 npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:46:53 npm ERR! fstream_stack FSReqWrap.oncomplete (fs.js:152:21) npm ERR! Error: EACCES: permission denied, open 'npm-debug.log' npm ERR! { Error: EACCES: permission denied, open 'npm-debug.log' npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'open', npm ERR! path: 'npm-debug.log' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! System Linux 4.19.57-v7+ npm ERR! command "/usr/bin/node" "/usr/bin/npm" "i" "-g" "npm" npm ERR! cwd /home/pi npm ERR! node -v v8.11.1 npm ERR! npm -v 1.4.21 npm ERR! path npm-debug.log npm ERR! syscall open npm ERR! code EACCES npm ERR! errno -13 npm ERR! stack Error: EACCES: permission denied, open 'npm-debug.log' npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pi/npm-debug.log npm ERR! not ok code 0 pi@raspberrypi:~ $ npm -v 1.4.21 (node:2273) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
and than from MagicMirror:
pi@raspberrypi:~/MagicMirror $ npm i -g npm (node:2633) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. npm ERR! tar.unpack untar error /home/pi/.npm/npm/6.10.1/package.tgz npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/npm' npm ERR! { Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/npm' npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/local/lib/node_modules/npm', npm ERR! fstream_type: 'Directory', npm ERR! fstream_path: '/usr/local/lib/node_modules/npm', npm ERR! fstream_class: 'DirWriter', npm ERR! fstream_stack: npm ERR! [ '/usr/lib/nodejs/fstream/lib/dir-writer.js:35:25', npm ERR! '/usr/lib/nodejs/mkdirp/index.js:46:53', npm ERR! 'FSReqWrap.oncomplete (fs.js:152:21)' ] } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! System Linux 4.19.57-v7+ npm ERR! command "/usr/bin/node" "/usr/bin/npm" "i" "-g" "npm" npm ERR! cwd /home/pi/MagicMirror npm ERR! node -v v8.11.1 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/npm npm ERR! syscall mkdir npm ERR! fstream_path /usr/local/lib/node_modules/npm npm ERR! fstream_type Directory npm ERR! fstream_class DirWriter npm ERR! code EACCES npm ERR! errno -13 npm ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/npm' npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/dir-writer.js:35:25 npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:46:53 npm ERR! fstream_stack FSReqWrap.oncomplete (fs.js:152:21) npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pi/MagicMirror/npm-debug.log npm ERR! not ok code 0 pi@raspberrypi:~/MagicMirror $ npm -v 1.4.21 (node:2688) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
-
Ok figured out I’m an idiot:
pi@raspberrypi:~/MagicMirror $ sudo npm i -g npm (node:2766) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. npm WARN package.json path-is-inside@1.0.2 No README data npm WARN package.json sorted-object@2.0.1 No README data npm WARN package.json config-chain@1.1.12 No license field. npm WARN package.json cyclist@0.2.2 No license field. npm WARN package.json json-schema@0.2.3 No license field. npm WARN package.json punycode@1.4.1 punycode is also the name of a node core module. npm WARN package.json qrcode-terminal@0.12.0 No license field. npm WARN package.json string_decoder@1.2.0 string_decoder is also the name of a node core module. /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js npm@6.10.1 /usr/local/lib/node_modules/npm pi@raspberrypi:~/MagicMirror $ sudo npm -v 6.10.1
I’m guessing I need to run this not from MagicMirror and rerun the bash for MagicMirror again?
-
Ok so here’s what I got:
pi@raspberrypi:~ $ sudo npm i -g npm /usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js + npm@6.10.1 added 433 packages from 823 contributors in 44.875s pi@raspberrypi:~ $ sudo npm -v 6.10.1
Do I just need to change the name of hte MagicMirror folder and rerun the bash again?
-
@stalker401 sorry, I should have mentioned u might need sudo.
But you got it!
Rename and rerun bash is the easiest