MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Error with dependencies, but it's different then the other ones just posted?!?!?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    11 Posts 3 Posters 3.2k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      tcsabina
      last edited by tcsabina

      Just start a xterm (or any terminal) on the RPi, and type those commands in there. And copy+paste the output of those to the forum.

      Maybe you have to execute those from the Magicmirror directory, I am not sure. But if yes, in the xterm you started just type ‘cd MagicMirror’. And after that type those 2 commands.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        stalker401 @tcsabina
        last edited by

        @tcsabina awesome thanks. Ill get on that after work today

        1 Reply Last reply Reply Quote 0
        • S Offline
          stalker401
          last edited by

          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.

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @stalker401
            last edited by

            @stalker401 npm is WAY downlevel

            Do

            npm i -g npm
            

            Then redo the npm -v
            Should be 6.?.?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Offline
              stalker401
              last edited by

              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.
              
              
              1 Reply Last reply Reply Quote 0
              • S Offline
                stalker401
                last edited by

                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?

                1 Reply Last reply Reply Quote 0
                • S Offline
                  stalker401
                  last edited by

                  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?

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @stalker401
                    last edited by sdetweil

                    @stalker401 sorry, I should have mentioned u might need sudo.

                    But you got it!

                    Rename and rerun bash is the easiest

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 1 / 2
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy