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

Error at the installation: cannot find module 'rimraf'

Scheduled Pinned Locked Moved Solved Troubleshooting
5 Posts 2 Posters 3.4k 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.
  • N Offline
    Neebotol
    last edited by Neebotol Jan 26, 2020, 9:22 PM Jan 26, 2020, 8:39 PM

    Hello there!

    I have an issue when I paste the command to install MM. It is an ‘updated link to install MM’ I found on this forum because the original one is giving me a lot of trouble. So I try new things :cowboy_hat_face:

    pi@raspberrypi:~ $ curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirr  or_scripts/master/raspberry.sh | bash
    
    $$\      $$\                     $$\           $$\      $$\ $$\                                            $$$$$$\
    $$$\    $$$ |                    \__|          $$$\    $$$ |\__|                                          $$  __$$\
    $$$$\  $$$$ | $$$$$$\   $$$$$$\  $$\  $$$$$$$\ $$$$\  $$$$ |$$\  $$$$$$\   $$$$$  $\   $$$$$$\   $$$$$$\  \__/  $$ |
    $$\$$\$$ $$ | \____$$\ $$  __$$\ $$ |$$  _____|$$\$$\$$ $$ |$$ |$$  __$$\ $$  __  $$\ $$  __$$\ $$  __$$\  $$$$$$  |
    $$ \$$$  $$ | $$$$$$$ |$$ /  $$ |$$ |$$ /      $$ \$$$  $$ |$$ |$$ |  \__|$$ |    \__|$$ /  $$ |$$ |  \__|$$  ____/
    $$ |\$  /$$ |$$  __$$ |$$ |  $$ |$$ |$$ |      $$ |\$  /$$ |$$ |$$ |      $$ |        $$ |  $$ |$$ |      $$ |
    $$ | \_/ $$ |\$$$$$$$ |\$$$$$$$ |$$ |\$$$$$$$\ $$ | \_/ $$ |$$ |$$ |      $$ |        \$$$$$$  |$$ |      $$$$$$$$\
    \__|     \__| \_______| \____$$ |\__| \_______|\__|     \__|\__|\__|      \__|         \______/ \__|      \________|
                           $$\   $$ |
                           \$$$$$$  |
                            \______/
    
    install log being saved to /home/pi/install.log
    Updating packages ...
    Installing helper tools ...
    Lecture des listes de paquets... Fait
    Construction de l'arbre des dépendances
    Lecture des informations d'état... Fait
    build-essential est déjà la version la plus récente (12.6).
    curl est déjà la version la plus récente (7.64.0-4).
    unzip est déjà la version la plus récente (6.0-23+deb10u1).
    wget est déjà la version la plus récente (1.20.1-1.1).
    wget passé en « installé manuellement ».
    Paquets suggérés :
      git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitwe
    Les paquets suivants seront mis à jour :
      git
    1 mis à jour, 0 nouvellement installés, 0 à enlever et 166 non mis à jour.
    Il est nécessaire de prendre 4 203 ko dans les archives.
    Après cette opération, 33,8 ko d'espace disque supplémentaires seront utilisés.
    Réception de :1 http://mirrors.ircam.fr/pub/raspbian/raspbian buster/main armhf gi
    4 203 ko réceptionnés en 2s (2 281 ko/s)
    apt-listchanges : Lecture des fichiers de modifications (« changelog »)...
    (Lecture de la base de données... 93835 fichiers et répertoires déjà installés.)
    Préparation du dépaquetage de .../git_1%3a2.20.1-2+deb10u1_armhf.deb ...
    Dépaquetage de git (1:2.20.1-2+deb10u1) sur (1:2.20.1-2) ...
    Paramétrage de git (1:2.20.1-2+deb10u1) ...
    Check current Node installation ...
    Node.js is not installed.
    Installing Node.js ...
    Warning: apt-key output should not be parsed (stdout is not a terminal)
    Lecture des listes de paquets... Fait
    Construction de l'arbre des dépendances
    Lecture des informations d'état... Fait
    Les NOUVEAUX paquets suivants seront installés :
      nodejs
    0 mis à jour, 1 nouvellement installés, 0 à enlever et 166 non mis à jour.
    Il est nécessaire de prendre 14,6 Mo dans les archives.
    Après cette opération, 77,3 Mo d'espace disque supplémentaires seront utilisés.
    Réception de :1 https://deb.nodesource.com/node_10.x buster/main armhf nodejs armhf 10.18.1-1nodesource1 [14,6 MB]
    14,6 Mo réceptionnés en 11s (1 365 ko/s)
    Sélection du paquet nodejs précédemment désélectionné.
    (Lecture de la base de données... 93842 fichiers et répertoires déjà installés.)
    Préparation du dépaquetage de .../nodejs_10.18.1-1nodesource1_armhf.deb ...
    Dépaquetage de nodejs (10.18.1-1nodesource1) ...
    Paramétrage de nodejs (10.18.1-1nodesource1) ...
    Traitement des actions différées (« triggers ») pour man-db (2.8.5-2) ...
    node version is
    Node.js installation Done! version=v10.18.1
    Check current NPM installation ...
    NPM currently installed. Checking version number.
    internal/modules/cjs/loader.js:638
        throw err;
        ^
    
    Error: Cannot find module 'rimraf'
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
        at Function.Module._load (internal/modules/cjs/loader.js:562:25)
        at Module.require (internal/modules/cjs/loader.js:692:17)
        at require (internal/modules/cjs/helpers.js:25:18)
        at Object. (/usr/lib/node_modules/npm/node_modules/fs-vacuum/vacuum.js:6:14)
        at Module._compile (internal/modules/cjs/loader.js:778:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
        at Module.load (internal/modules/cjs/loader.js:653:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
        at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    Minimum npm version: V6.0.0
    Installed npm version: V
    npm should be upgraded.
    Installing npm ...
    E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».
    internal/modules/cjs/loader.js:638
        throw err;
        ^
    
    Error: Cannot find module 'rimraf'
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
        at Function.Module._load (internal/modules/cjs/loader.js:562:25)
        at Module.require (internal/modules/cjs/loader.js:692:17)
        at require (internal/modules/cjs/helpers.js:25:18)
        at Object. (/usr/lib/node_modules/npm/node_modules/fs-vacuum/vacuum.js:6:14)
        at Module._compile (internal/modules/cjs/loader.js:778:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
        at Module.load (internal/modules/cjs/loader.js:653:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
        at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    internal/modules/cjs/loader.js:638
        throw err;
        ^
    
    Error: Cannot find module 'rimraf'
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
        at Function.Module._load (internal/modules/cjs/loader.js:562:25)
        at Module.require (internal/modules/cjs/loader.js:692:17)
        at require (internal/modules/cjs/helpers.js:25:18)
        at Object. (/usr/lib/node_modules/npm/node_modules/fs-vacuum/vacuum.js:6:14)
        at Module._compile (internal/modules/cjs/loader.js:778:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
        at Module.load (internal/modules/cjs/loader.js:653:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
        at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    npm installation Done! version=V
    Cloning MagicMirror ...
    Clonage dans 'MagicMirror'...
    remote: Enumerating objects: 331, done.
    remote: Counting objects: 100% (331/331), done.
    remote: Compressing objects: 100% (295/295), done.
    remote: Total 331 (delta 42), reused 193 (delta 23), pack-reused 0
    Réception d'objets: 100% (331/331), 676.44 KiB | 1.57 MiB/s, fait.
    Résolution des deltas: 100% (42/42), fait.
    Cloning MagicMirror Done!
    Installing dependencies ...
    internal/modules/cjs/loader.js:638
        throw err;
        ^
    
    Error: Cannot find module 'rimraf'
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
        at Function.Module._load (internal/modules/cjs/loader.js:562:25)
        at Module.require (internal/modules/cjs/loader.js:692:17)
        at require (internal/modules/cjs/helpers.js:25:18)
        at Object. (/usr/lib/node_modules/npm/node_modules/fs-vacuum/vacuum.js:6:14)
        at Module._compile (internal/modules/cjs/loader.js:778:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
        at Module.load (internal/modules/cjs/loader.js:653:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
        at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    Unable to install dependencies!
    

    When I manualy try to install rimraf with ‘npm install rimraf’ I have the same error.

    Do you have any idea? And sorry for my english it isn’t my mother tongue.

    Thanks! :grinning_face:

    S 1 Reply Last reply Jan 26, 2020, 8:44 PM Reply Quote 0
    • S Offline
      sdetweil @Neebotol
      last edited by Jan 26, 2020, 8:44 PM

      @Neebotol i posted a reply in the other topic
      but for completeness here

      do

      rm -rf MagicMirror
      npm clean cache
      

      the start the installer again

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • N Offline
        Neebotol
        last edited by Neebotol Jan 26, 2020, 8:49 PM Jan 26, 2020, 8:46 PM

        Thank you for your answer, I’m trying rn

        Edit :

        Installing dependencies ...
        internal/modules/cjs/loader.js:638
            throw err;
            ^
        
        Error: Cannot find module 'rimraf'
            at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
            at Function.Module._load (internal/modules/cjs/loader.js:562:25)
            at Module.require (internal/modules/cjs/loader.js:692:17)
            at require (internal/modules/cjs/helpers.js:25:18)
            at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-vacuum/vacuum.js:6:14)
            at Module._compile (internal/modules/cjs/loader.js:778:30)
            at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
            at Module.load (internal/modules/cjs/loader.js:653:32)
            at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
            at Function.Module._load (internal/modules/cjs/loader.js:585:3)
        Unable to install dependencies!
        
        

        Same issue :confused_face:
        (should I delete my other post on the other topic?)

        1 Reply Last reply Reply Quote 0
        • N Offline
          Neebotol
          last edited by Jan 26, 2020, 10:32 PM

          Hum, just tried (to see what happen) an apt-get upgrade and then rpi-updtate : can’t restart raspian, I have to flash AGAIN the SD card… Next try tomorrow…

          1 Reply Last reply Reply Quote 0
          • N Offline
            Neebotol
            last edited by Jan 29, 2020, 9:57 PM

            WOW I just solved it at the moment! How?

            I changed the sd card. (after more than 20h of tests, the issue was finally easy and dumb)

            IM SO HAPPY RN :smiling_face_with_open_mouth_smiling_eyes:

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