Bug 1216422

Summary: devel:languages:nodejs/pnpm: Install conflict with nodejs package on Fedora 38
Product: [openSUSE] openSUSE.org Reporter: Francis Gagné <francis.gagne>
Component: 3rd party softwareAssignee: Adam Majer <amajer>
Status: NEW --- QA Contact: E-mail List <screening-team-bugs>
Severity: Major    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: x86-64   
OS: Fedora   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Francis Gagné 2023-10-19 15:10:10 UTC
Trying to install pnpm on Fedora 38 today. I'm getting a Transaction test error:
  file /usr/lib/node_modules conflicts between attempted installs of pnpm-8.4.0-1.15.noarch and nodejs-1:18.18.0-1.fc38.x86_64

Here is the dnf install output:

[gagf01@fedora ~]$ sudo dnf install pnpm
Last metadata expiration check: 0:42:41 ago on Thu 19 Oct 2023 10:22:10 AM EDT.
Dependencies resolved.
======================================================================================================================================================
 Package                           Architecture            Version                                      Repository                               Size
======================================================================================================================================================
Installing:
 pnpm                              noarch                  8.4.0-1.15                                   devel_languages_nodejs                  2.3 M
Installing dependencies:
 nodejs                            x86_64                  1:18.18.0-1.fc38                             updates                                 2.2 M
 nodejs-libs                       x86_64                  1:18.18.0-1.fc38                             updates                                  14 M
 nodejs-npm                        x86_64                  1:9.8.1-1.18.18.0.1.fc38                     updates                                 2.3 M
Installing weak dependencies:
 nodejs-docs                       noarch                  1:18.18.0-1.fc38                             updates                                 7.7 M
 nodejs-full-i18n                  x86_64                  1:18.18.0-1.fc38                             updates                                 8.5 M

Transaction Summary
======================================================================================================================================================
Install  6 Packages

Total download size: 37 M
Installed size: 196 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): nodejs-18.18.0-1.fc38.x86_64.rpm                                                                               3.3 MB/s | 2.2 MB     00:00    
(2/6): nodejs-docs-18.18.0-1.fc38.noarch.rpm                                                                          6.3 MB/s | 7.7 MB     00:01    
(3/6): nodejs-full-i18n-18.18.0-1.fc38.x86_64.rpm                                                                     7.0 MB/s | 8.5 MB     00:01    
(4/6): nodejs-npm-9.8.1-1.18.18.0.1.fc38.x86_64.rpm                                                                   4.1 MB/s | 2.3 MB     00:00    
(5/6): nodejs-libs-18.18.0-1.fc38.x86_64.rpm                                                                           10 MB/s |  14 MB     00:01    
(6/6): pnpm-8.4.0-1.15.noarch.rpm                                                                                     330 kB/s | 2.3 MB     00:06    
------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                 5.1 MB/s |  37 MB     00:07     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /usr/lib/node_modules conflicts between attempted installs of pnpm-8.4.0-1.15.noarch and nodejs-1:18.18.0-1.fc38.x86_64