Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-19597

turn off npm's update-notifier

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-8.9.0, rhel-8.10, CentOS Stream 8, CentOS Stream 9, rhel-9.3.0, rhel-9.4
    • nodejs
    • None
    • None
    • Low
    • sst_cs_apps
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • All
    • None

      What were you trying to do that didn't work?

      Running some npm commands results in a message that npm is out of date and suggests running a command that updates npm outside of dnf.

      Please provide the package NVR for which bug is seen:

      How reproducible:

      Depends on drift between the RPM packaged version of npm and the latest version on https://registry.npmjs.org/npm.

      Steps to reproduce

      1. (optional) dnf module enable -y nodejs:<version>
      2. dnf install -y nodejs
      3. mkdir -p /tmp/test-pkg
      4. cd /tmp/test-pkg/
      5. npm install omg-i-pass # or any npm package

      Expected results

      added 1 package, and audited 2 packages in 336ms
      
      found 0 vulnerabilities
      

      i.e. no warning if the RPM is the latest available from the appstream repository.

      Actual results

      added 1 package, and audited 2 packages in 458ms
      
      found 0 vulnerabilities
      npm notice
      npm notice New major version of npm available! 8.19.4 -> 10.2.5
      npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.5
      npm notice Run npm install -g npm@10.2.5 to update!
      npm notice
      

            nodejs-maint nodejs-maint
            rlau@redhat.com Richard Lau
            nodejs-maint nodejs-maint
            bot rhel-cs-apps-subsystem-qe bot rhel-cs-apps-subsystem-qe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: