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.

    NPM install is giving Error.

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    18 Posts 11 Posters 28.3k Views 11 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.
    • P Offline
      postremalone
      last edited by

      NPM install is giving error.

      alt text

      Help please.

      P 1 Reply Last reply Reply Quote 0
      • A Offline
        alessandroiacovella
        last edited by

        same with me :pouting_face:

        1 Reply Last reply Reply Quote 0
        • M Offline
          merceg100
          last edited by

          Same here:

          Same here:

          pi@raspberrypi:~/MagicMirror $ npm install
          (node:4024) [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.52-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 WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.

          electron-chromedriver@1.7.1 install /home/pi/MagicMirror/node_modules/spectron/node_modules/electron-chromedriver
          node ./download-chromedriver.js

          npm ERR! fetch failed https://registry.npmjs.org/lodash.isobject/-/lodash.isobject-3.0.2.tgz
          npm WARN engine rxjs@5.5.11: wanted: {“npm”:“>=2.0.0”} (current: {“node”:“8.11.1”,“npm”:“1.4.21”})
          npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
          npm ERR! fetch failed https://registry.npmjs.org/nomnom/-/nomnom-1.8.1.tgz
          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

          N 1 Reply Last reply Reply Quote 0
          • N Offline
            NoNameRo @merceg100
            last edited by NoNameRo

            @postremalone @alessandroiacovella @merceg100

            Upgrade npm with

            npm install -g npm@latest
            
            M 1 Reply Last reply Reply Quote 0
            • A Offline
              alessandroiacovella
              last edited by

              What command do you type to upgrade npm?

              1 Reply Last reply Reply Quote 0
              • M Offline
                merceg100 @NoNameRo
                last edited by

                @nonamero said in NPM install is giving Error.:

                @postremalone @alessandroiacovella @merceg100

                Upgrade npm with

                npm install -g npm@latest
                

                Tried it… doesn’t help either…

                1 Reply Last reply Reply Quote 0
                • P Offline
                  postremalone
                  last edited by

                  Bump… Anyone help please.

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    merceg100
                    last edited by

                    @alessandroiacovella said in NPM install is giving Error.:

                    What command do you type to upgrade npm?

                    After I installed MM using this command:
                    git clone https://github.com/MichMich/MagicMirror

                    then I ran:
                    sudo apt-get install npm

                    afterwards:
                    cd MagicMirror

                    npm install

                    Then I tried

                    npm install -g npm@latest

                    but it didnt work also.
                    I am running latest updated Raspbian on RPi 3 b+

                    N 1 Reply Last reply Reply Quote 0
                    • N Offline
                      NoNameRo @merceg100
                      last edited by NoNameRo

                      @merceg100

                      please try the following

                      sudo apt-get remove nodejs nodejs-legacy nodered
                      

                      after that

                      curl -sL https://deb.nodesource.com/setup_$NODE_STABLE_BRANCH | sudo -E bash -
                      sudo apt-get install -y nodejs
                      npm install -g npm@latest
                      

                      after that enter in the repository with

                      cd MagicMirror
                      

                      then install and run the app with

                      npm install && npm start
                      

                      in case of errors please post here.

                      why do not you use the automatic installation for the RPi 3 b +

                      bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"
                      
                      D D 2 Replies Last reply Reply Quote 0
                      • F Offline
                        fire1ce
                        last edited by

                        @nonamero

                        curl -sL https://deb.nodesource.com/setup_$NODE_STABLE_BRANCH | sudo -E bash -
                        sudo apt-get install -y nodejs
                        npm install -g npm@latest
                        

                        won’t install npm. getting command not found: npm

                        N 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