• 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.

Absolute Beginner Needing Help Installing Dependencies

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 5 Posters 4.4k Views 5 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
    leroyhab
    last edited by Jan 27, 2019, 9:17 PM

    Hello
    I meet the same issue.
    I have run the installation bash on a fresh newly setup raspberry pi 3 B.

    After this error, I tried to installa previous version of electron

    sudo npm install -g electron@1.7.6
    

    Error log is the same :

    (node:1853) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
    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" "-g" "electron@1.7.6"
    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
    

    If you find some answer to this issue, I will be glad to setup my mirror.

    S 1 Reply Last reply Jan 27, 2019, 10:00 PM Reply Quote 0
    • M Offline
      mdhenriksen @bhall321
      last edited by Jan 27, 2019, 9:47 PM

      @bhall321 HI! I see you are using the automatic installer which - I seem to recall - is missing Node. I would recommend doing a manual installation instead. The steps to do it is on GitHub and they are very easy to follow :-)

      1 Reply Last reply Reply Quote 1
      • L Offline
        leroyhab
        last edited by Jan 27, 2019, 9:54 PM

        hello mdhenriksen

        Thank you for your answer

        I have run the automatic installer and the first error I got was “npm Command unknown”

        So I installed Node and Npm and re-ran the automatic installer .
        Then I got this error.

        I am setting the sdcard for the raspberry Pi from scratch then i will try the manual step by step.

        Thank you
        Best regards

        Habib

        M 1 Reply Last reply Jan 27, 2019, 9:58 PM Reply Quote 0
        • M Offline
          mdhenriksen @leroyhab
          last edited by Jan 27, 2019, 9:58 PM

          @leroyhab Great! I think you will have more luck with that. Let me know how it goes!

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @leroyhab
            last edited by Jan 27, 2019, 10:00 PM

            @leroyhab said in Absolute Beginner Needing Help Installing Dependencies:

            npm -v 1.4.21

            npm is downlevel… mine is 6.6.0

            google search on upgrading npm…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • L Offline
              leroyhab
              last edited by Jan 27, 2019, 10:03 PM

              Hello
              I am reading the step-by-step from github
              First thing missing is the installation of NPM
              Raspbian Stretch does not come with npm preinstalled (neither in normal, light or full version)

              Is there a recommended version of npm ?

              S 1 Reply Last reply Jan 27, 2019, 10:11 PM Reply Quote 0
              • S Offline
                sdetweil @leroyhab
                last edited by Jan 27, 2019, 10:11 PM

                @leroyhab whatever the latest is…

                this is a failing of the install script to check and install/update to the right levels

                execute

                sudo npm install npm@latest -g
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                K 1 Reply Last reply Feb 7, 2019, 3:43 PM Reply Quote 1
                • L Offline
                  leroyhab
                  last edited by Jan 27, 2019, 10:17 PM

                  Hello
                  Wunderbar !!

                  npm is installed with node !

                  manual setup finished succesfully

                  thank you very much

                  1 Reply Last reply Reply Quote 1
                  • S Offline
                    sdetweil
                    last edited by Jan 27, 2019, 10:17 PM

                    awesome!

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      kdavis @sdetweil
                      last edited by Feb 7, 2019, 3:43 PM

                      @sdetweil does that mean the automatic setup doesn’t have it or the manual github setup doesn’t have it listed as a step? :thinking_face:

                      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