Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75279

npm 1.8.0 hangs during installation in CI pipelines

      As per https://github.com/nodejs/docker-node/issues/1946 and https://github.com/npm/cli/issues/7814 this is a problem with npm version that node:20 installs, where the npm installation gets stuck until a timeout makes it fail.

      As per [BUG] npm 10.9.0 stuck in wsl with ubuntu environmentBug and [BUG] npm install always hangs on first attemptBug this is solved in npm:1.9.1. npm version is by default provided by node, so as per https://nodejs.org/dist/index.json using node version v22.13.0 or higher solves this issue.

      Instead of only bumping npm version, keeping node and npm versions aligned soun ds reasonable to me.

      npm and node versions are inherited from the parent pom, so it makes sense to bump versions there and then bump parent in these plugins 

          [JENKINS-75279] npm 1.8.0 hangs during installation in CI pipelines

          Pedro Bueno created issue -
          Pedro Bueno made changes -
          Description Original: As per [!https://github.githubassets.com/favicon.ico!NPM install stucks with node:20open|https://github.com/nodejs/docker-node/issues/1946] and [ !https://github.githubassets.com/favicon.ico![BUG] <Freezes during npm install>Bug|https://github.com/npm/cli/issues/7814] this is a problem with {{npm}} version that {{node:20}} installs, where the {{npm}} installation gets stuck until a timeout makes it fail.

          As per [!https://github.githubassets.com/favicon.ico! [BUG] npm 10.9.0 stuck in wsl with ubuntu environmentBug|https://github.com/npm/cli/issues/7868] and [!https://github.githubassets.com/favicon.ico! [BUG] npm install always hangs on first attemptBug|https://github.com/npm/cli/issues/7891] this is solved in {{{}npm:1.9.1{}}}. {{npm}} version is by default provided by node, so as per [https://nodejs.org/dist/index.json] using node version {{v22.13.0}} or higher solves this issue.

          Instead of only bumping {{npm}} version, keeping {{node}} and {{npm}} versions aligned soun ds reasonable to me.

          npm and node versions are inherited from the [parent pom|https://github.com/jenkinsci/analysis-pom-plugin/blob/main/pom.xml#L60-L61], so it makes sense to bump versions there and then bump parent in these plugins 
          New: As per https://github.com/nodejs/docker-node/issues/1946 and https://github.com/npm/cli/issues/7814&#xA0;this is a problem with {{npm}} version that {{node:20}} installs, where the {{npm}} installation gets stuck until a timeout makes it fail.

          As per [!https://github.githubassets.com/favicon.ico! [BUG] npm 10.9.0 stuck in wsl with ubuntu environmentBug|https://github.com/npm/cli/issues/7868] and [!https://github.githubassets.com/favicon.ico! [BUG] npm install always hangs on first attemptBug|https://github.com/npm/cli/issues/7891] this is solved in {{{}npm:1.9.1{}}}. {{npm}} version is by default provided by node, so as per [https://nodejs.org/dist/index.json] using node version {{v22.13.0}} or higher solves this issue.

          Instead of only bumping {{npm}} version, keeping {{node}} and {{npm}} versions aligned soun ds reasonable to me.

          npm and node versions are inherited from the [parent pom|https://github.com/jenkinsci/analysis-pom-plugin/blob/main/pom.xml#L60-L61], so it makes sense to bump versions there and then bump parent in these plugins 
          Pedro Bueno made changes -
          Component/s New: analysis-model-api-plugin [ 24221 ]
          Pedro Bueno made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Pedro Bueno made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Pedro Bueno made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]

            pbuenoyerbes Pedro Bueno
            pbuenoyerbes Pedro Bueno
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: