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.

    MMM-Reddit - Various depreciation errors upon install

    Scheduled Pinned Locked Moved Solved Troubleshooting
    7 Posts 4 Posters 556 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.
    • K Offline
      kasperb
      last edited by

      I’m doing a new install of my Mirror and replicating my previous apps. However, I’m getting the following error for MMM-Reddit, which worked fine on my previous Mirror. Any ideas?


      npm warn old lockfile
      npm warn old lockfile The package-lock.json file was created with an old version of npm,
      npm warn old lockfile so supplemental metadata must be fetched from the registry.
      npm warn old lockfile
      npm warn old lockfile This is a one-time fix-up, please be patient…
      npm warn old lockfile
      npm warn deprecated [email protected]: Critical bug fixed in v3.0.1, please upgrade to the latest version.
      npm warn deprecated [email protected]: This package is no longer supported.
      npm warn deprecated [email protected]: Critical bug fixed in v2.0.1, please upgrade to the latest version.
      npm warn deprecated [email protected]: Please upgrade to v0.1.5
      npm warn deprecated [email protected]: Please upgrade to v0.1.7
      npm warn deprecated [email protected]: Please update to ini >=1.3.6 to avoid a prototype pollution issue
      npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
      npm warn deprecated [email protected]: Critical bug fixed in v3.0.1, please upgrade to the latest version.
      npm warn deprecated [email protected]: Please upgrade to v1.0.1
      npm warn deprecated [email protected]: Please upgrade to v1.0.1
      npm warn deprecated [email protected]: Please upgrade to v1.0.1
      npm warn deprecated [email protected]: Please upgrade to v1.0.1
      npm warn deprecated [email protected]: Please upgrade to v1.0.1
      npm warn deprecated [email protected]: Please upgrade to v1.0.1
      npm warn deprecated [email protected]: Please upgrade to v1.0.1
      npm warn deprecated [email protected]: Please upgrade to v1.0.1
      npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
      npm warn deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
      npm warn deprecated [email protected]: This package is no longer supported.
      npm warn deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
      npm warn deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
      npm warn deprecated [email protected]: This package is no longer supported.
      npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
      npm warn deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
      npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
      npm warn deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
      npm warn deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
      npm warn deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
      npm warn deprecated [email protected]: This package is no longer supported.
      npm warn deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
      npm warn deprecated [email protected]: this library is no longer supported
      npm warn deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
      npm warn deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
      npm warn deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
      npm warn deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
      npm warn deprecated [email protected]: this library is no longer supported
      npm warn deprecated [email protected]: This package is no longer supported.
      npm warn deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
      npm warn deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
      npm warn deprecated [email protected]: Node Sass is no longer supported. Please use sass or sass-embedded instead.
      npm error code 1
      npm error path /home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/node-sass
      npm error command failed
      npm error command sh -c node scripts/build.js
      npm error Building: /usr/bin/node /home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
      npm error gyp info it worked if it ends with ok
      npm error gyp verb cli [
      npm error gyp verb cli ‘/usr/bin/node’,
      npm error gyp verb cli ‘/home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/node-gyp/bin/node-gyp.js’,
      npm error gyp verb cli ‘rebuild’,
      npm error gyp verb cli ‘–verbose’,
      npm error gyp verb cli ‘–libsass_ext=’,
      npm error gyp verb cli ‘–libsass_cflags=’,
      npm error gyp verb cli ‘–libsass_ldflags=’,
      npm error gyp verb cli ‘–libsass_library=’
      npm error gyp verb cli ]
      npm error gyp info using [email protected]
      npm error gyp info using [email protected] | linux | arm
      npm error gyp verb command rebuild []
      npm error gyp verb command clean []
      npm error gyp verb clean removing “build” directory
      npm error gyp verb command configure []
      npm error gyp verb check python checking for Python executable “python2” in the PATH
      npm error gyp verb which failed Error: not found: python2
      npm error gyp verb which failed at getNotFoundError (/home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/which/which.js:13:12)
      npm error gyp verb which failed at F (/home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/which/which.js:68:19)
      npm error gyp verb which failed at E (/home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/which/which.js:80:29)
      npm error gyp verb which failed at /home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/which/which.js:89:16
      npm error gyp verb which failed at /home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/isexe/index.js:42:5
      npm error gyp verb which failed at /home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/isexe/mode.js:8:5
      npm error gyp verb which failed at FSReqCallback.oncomplete (node:fs:197:21)
      npm error gyp verb which failed python2 Error: not found: python2
      npm error gyp verb which failed at getNotFoundError (/home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/which/which.js:13:12)
      npm error gyp verb which failed at F (/home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/which/which.js:68:19)
      npm error gyp verb which failed at E (/home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/which/which.js:80:29)
      npm error gyp verb which failed at /home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/which/which.js:89:16
      npm error gyp verb which failed at /home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/isexe/index.js:42:5
      npm error gyp verb which failed at /home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/isexe/mode.js:8:5
      npm error gyp verb which failed at FSReqCallback.oncomplete (node:fs:197:21) {
      npm error gyp verb which failed code: ‘ENOENT’
      npm error gyp verb which failed }
      npm error gyp verb check python checking for Python executable “python” in the PATH
      npm error gyp verb which succeeded python /usr/bin/python
      npm error (node:4599) [DEP0060] DeprecationWarning: The util._extend API is deprecated. Please use Object.assign() instead.
      npm error (Use node --trace-deprecation ... to show where the warning was created)
      npm error gyp verb check python version /usr/bin/python -c "import platform; print(platform.python_version());" returned: “3.9.2\n”
      npm error gyp ERR! configure error
      npm error gyp ERR! stack Error: Python executable “/usr/bin/python” is v3.9.2, which is not supported by gyp.
      npm error gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
      npm error gyp ERR! stack at PythonFinder.failPythonVersion (/home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/node-gyp/lib/configure.js:501:19)
      npm error gyp ERR! stack at PythonFinder. (/home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/node-gyp/lib/configure.js:483:14)
      npm error gyp ERR! stack at ChildProcess.exithandler (node:child_process:413:7)
      npm error gyp ERR! stack at ChildProcess.emit (node:events:519:28)
      npm error gyp ERR! stack at maybeClose (node:internal/child_process:1104:16)
      npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:304:5)
      npm error gyp ERR! System Linux 6.1.21-v8+
      npm error gyp ERR! command “/usr/bin/node” “/home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
      npm error gyp ERR! cwd /home/burgerson/MagicMirror/modules/MMM-Reddit/node_modules/node-sass
      npm error gyp ERR! node -v v22.9.0
      npm error gyp ERR! node-gyp -v v3.7.0
      npm error gyp ERR! not ok
      npm error Build failed with error code: 1
      npm error A complete log of this run can be found in: /home/burgerson/.npm/_logs/2024-10-04T10_51_38_463Z-debug-0.log

      S M mumblebajM 3 Replies Last reply Reply Quote 0
      • M Offline
        MarcLandis @kasperb
        last edited by

        @kasperb there is a fork of MMM-Reddit which seems to be updated: https://github.com/CurlyQ12391/MMM-RedditDisplay

        K 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @kasperb
          last edited by

          @kasperb the upgrade of nodejs requires changes to any component that use gyp type communications

          in this case node-sass
          note it says no longer supported

          and many of the other dependencies also need update

          so this module needs a whole review of its design and implementation with appropriate updates

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          K 1 Reply Last reply Reply Quote 0
          • M Offline
            MarcLandis @kasperb
            last edited by

            @kasperb there is a fork of MMM-Reddit which seems to be updated: https://github.com/CurlyQ12391/MMM-RedditDisplay

            K 1 Reply Last reply Reply Quote 0
            • mumblebajM Offline
              mumblebaj Module Developer @kasperb
              last edited by mumblebaj

              @kasperb You can give this one a go.

              https://github.com/mumblebaj/MMM-Reddit.git

              It still works.

              e4fea835-f4aa-4f7c-9b62-04e6018100cf-image.png

              Check out my modules at: https://github.com/mumblebaj?tab=repositories

              K 1 Reply Last reply Reply Quote 1
              • K Offline
                kasperb @mumblebaj
                last edited by

                @mumblebaj Yes, it was working fine on my previous mirror. However, it stopped working after upgrading to a new RPI/updated OS.

                1 Reply Last reply Reply Quote 0
                • K Offline
                  kasperb @sdetweil
                  last edited by

                  @sdetweil Thanks… yes, looks like the module hasn’t been updated in a while.

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    kasperb @MarcLandis
                    last edited by

                    @MarcLandis Thanks - this one works well. Just need to reconfigure the custom CSS. I appreciate the suggestion!

                    1 Reply Last reply Reply Quote 0
                    • S sdetweil has marked this topic as solved on
                    • 1 / 1
                    • 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
                      OSZAR »