• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

first installation on RPi3 failed

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 2 Posters 1.6k Views 2 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.
  • L Offline
    lkthomas
    last edited by Jan 9, 2019, 1:00 PM

    Folks, this is my first time to install MM, and I never had any prior experience on this.
    This is the error I am getting, anyone have idea why?

    pi@raspberrypi:~/MagicMirror $ npm install
    (node:6315) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
    npm WARN package.json current-week-number@1.0.7 license should be a valid SPDX license expression
    npm WARN package.json rrule-alt@2.2.8 No license field.
    npm WARN package.json valid-url@1.0.9 No license field.
    npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
    npm ERR! Error: Method Not Allowed
    npm ERR! at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
    npm ERR! at /usr/share/npm/lib/cache/add-named.js:203:12
    npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
    npm ERR! at FSReqWrap.oncomplete (fs.js:135:15)
    npm ERR! If you need help, you may report this entire log,
    npm ERR! including the npm and node versions, at:
    npm ERR! http://github.com/npm/npm/issues

    npm ERR! System Linux 4.14.79-v7+
    npm ERR! command “/usr/bin/node” “/usr/bin/npm” “install”
    npm ERR! cwd /home/pi/MagicMirror
    npm ERR! node -v v8.11.1
    npm ERR! npm -v 1.4.21
    npm ERR! code E405
    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

    1 Reply Last reply Reply Quote 0
    • L Offline
      lavolp3 Module Developer
      last edited by Jan 9, 2019, 1:10 PM

      @lkthomas said in first installation on RPi3 failed:

      npm -v 1.4.21

      your npm version is very old.
      Try to first update npm via

      npm install -g npm@latest
      

      How to troubleshoot modules
      MMM-soccer v2, MMM-AVStock

      1 Reply Last reply Reply Quote 0
      • L Offline
        lavolp3 Module Developer
        last edited by Jan 9, 2019, 1:12 PM

        @lkthomas said in first installation on RPi3 failed:

        npm ERR! node -v v8.11.1

        Also try to upgrade node, e.g. via the small program “n”

        npm install -g n
        n stable
        

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        1 Reply Last reply Reply Quote 0
        • L Offline
          lkthomas
          last edited by Jan 9, 2019, 1:18 PM

          @lavolp3 said in first installation on RPi3 failed:

          n stable

          doesn’t help:

          pi@raspberrypi:~/MagicMirror $ sudo npm install -g npm@latest
          (node:6358) [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.1.1 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.5.0 /usr/local/lib/node_modules/npm

          pi@raspberrypi:~/MagicMirror $ sudo npm install -g n
          /usr/bin/n -> /usr/lib/node_modules/n/bin/n

          • n@2.1.12
            added 1 package from 4 contributors in 1.974s
            pi@raspberrypi:~/MagicMirror $ sudo n stable

            install : node-v11.6.0
            mkdir : /usr/local/n/versions/node/11.6.0
            fetch : https://nodejs.org/dist/v11.6.0/node-v11.6.0-linux-armv7l.tar.gz
            ######################################################################## 100.0%
            installed : v11.6.0

          pi@raspberrypi:~/MagicMirror $ npm install
          (node:6481) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
          npm WARN package.json current-week-number@1.0.7 license should be a valid SPDX license expression
          npm WARN package.json rrule-alt@2.2.8 No license field.
          npm WARN package.json valid-url@1.0.9 No license field.
          npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
          npm ERR! Error: Method Not Allowed
          npm ERR! at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
          npm ERR! at /usr/share/npm/lib/cache/add-named.js:203:12
          npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
          npm ERR! at FSReqWrap.oncomplete (fs.js:135:15)
          npm ERR! If you need help, you may report this entire log,
          npm ERR! including the npm and node versions, at:
          npm ERR! http://github.com/npm/npm/issues

          npm ERR! System Linux 4.14.79-v7+
          npm ERR! command “/usr/bin/node” “/usr/bin/npm” “install”
          npm ERR! cwd /home/pi/MagicMirror
          npm ERR! node -v v8.11.1
          npm ERR! npm -v 1.4.21
          npm ERR! code E405
          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

          1 Reply Last reply Reply Quote 0
          • L Offline
            lavolp3 Module Developer
            last edited by Jan 9, 2019, 1:22 PM

            better reboot after installing new npm and node versions

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            1 Reply Last reply Reply Quote 0
            • L Offline
              lkthomas
              last edited by Jan 9, 2019, 2:13 PM

              looking okay after reboot, thanks

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                3/6
                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