Bug 993421 - Unable to install nodejs-less
Unable to install nodejs-less
Product: Fedora EPEL
Classification: Fedora
Component: nodejs-less (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Stephen Gallagher
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-08-05 17:42 EDT by jete.okeeffe
Modified: 2013-08-05 17:54 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-08-05 17:54:08 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description jete.okeeffe 2013-08-05 17:42:08 EDT
Description of problem:
Unable to install nodejs-less from EPEL 6 on RHEL 6.4

Version-Release number of selected component (if applicable):

How reproducible:
Everytime for me

Steps to Reproduce:
1. yum install nodejs-less.noarch

Actual results:
Running Transaction
  Installing : nodejs-less-1.4.1-1.el6.noarch                                                                     1/1 
Error unpacking rpm package nodejs-less-1.4.1-1.el6.noarch
error: unpacking of archive failed on file /usr/lib/node_modules/less/node_modules/ycssmin: cpio: rename
  Verifying  : nodejs-less-1.4.1-1.el6.noarch                                                                     1/1 

  nodejs-less.noarch 0:1.4.1-1.el6            

Expected results:
Installation of nodejs-less

Additional info:

[root@dev ~]# yum install nodejs-less.noarch
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: mirrors.cmich.edu
 * epel: www.gtlib.gatech.edu
 * extras: mirrors.cmich.edu
 * updates: centosp4.centos.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nodejs-less.noarch 0:1.4.1-1.el6 will be installed
--> Processing Dependency: npm(ycssmin) < 1.1 for package: nodejs-less-1.4.1-1.el6.noarch
--> Processing Dependency: npm(ycssmin) >= 1.0.1 for package: nodejs-less-1.4.1-1.el6.noarch
--> Running transaction check
---> Package ycssmin.noarch 0:1.0.1-4.el6.2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package                       Arch                     Version                          Repository              Size
 nodejs-less                   noarch                   1.4.1-1.el6                      epel                    74 k
Installing for dependencies:
 ycssmin                       noarch                   1.0.1-4.el6.2                    epel                    11 k

Transaction Summary
Install       2 Package(s)

Total download size: 85 k
Installed size: 265 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 85 k
(1/2): nodejs-less-1.4.1-1.el6.noarch.rpm                                                      |  74 kB     00:00     
(2/2): ycssmin-1.0.1-4.el6.2.noarch.rpm                                                        |  11 kB     00:00     
Total                                                                                  69 kB/s |  85 kB     00:01     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : ycssmin-1.0.1-4.el6.2.noarch                                                                       1/2 
  Installing : nodejs-less-1.4.1-1.el6.noarch                                                                     2/2 
Error unpacking rpm package nodejs-less-1.4.1-1.el6.noarch
error: unpacking of archive failed on file /usr/lib/node_modules/less/node_modules/ycssmin: cpio: rename
  Verifying  : ycssmin-1.0.1-4.el6.2.noarch                                                                       1/2 
  Verifying  : nodejs-less-1.4.1-1.el6.noarch                                                                     2/2 

Dependency Installed:
  ycssmin.noarch 0:1.0.1-4.el6.2                                                                                      

  nodejs-less.noarch 0:1.4.1-1.el6
Comment 1 T.C. Hollingsworth 2013-08-05 17:50:22 EDT
That rpm error usually means that the file/directory it is trying to install already exists.

Did you `npm install -g less` in the past?  If so, you'll need to remove it with `rm -rf /usr/lib/node_modules/less` before you can install it through yum.
Comment 2 jete.okeeffe 2013-08-05 17:54:08 EDT
Yep, you're absolutely right. My bad.

Note You need to log in before you can comment on or make changes to this bug.