Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1147108 - nodejs-glob install fails
Summary: nodejs-glob install fails
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: nodejs-glob
Version: 21
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: T.C. Hollingsworth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-26 23:30 UTC by M. Edward (Ed) Borasky
Modified: 2016-04-19 18:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-29 05:41:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
screenshot of DevAssistant requesting install of 'glob' while it's already there (deleted)
2014-09-27 03:21 UTC, M. Edward (Ed) Borasky
no flags Details

Description M. Edward (Ed) Borasky 2014-09-26 23:30:14 UTC
Description of problem: 'sudo yum install nodejs-glob' yields the following error message:

  Installing : nodejs-glob-3.2.6-2.fc21.noarch                                                     1/1 
Error unpacking rpm package nodejs-glob-3.2.6-2.fc21.noarch
error: unpacking of archive failed on file /usr/lib/node_modules/glob/node_modules/inherits: cpio: rename
  Verifying  : nodejs-glob-3.2.6-2.fc21.noarch                                                     1/1 

Failed:
  nodejs-glob.noarch 0:3.2.6-2.fc21                                                                    

Complete!

Comment 1 T.C. Hollingsworth 2014-09-26 23:33:35 UTC
Can you please provide the output of:

% ls -l /usr/lib/node_modules/glob/node_modules

and

% cat /usr/lib/node_modules/glob/package.json

so we can troubleshoot this further.  Thanks!

Comment 2 M. Edward (Ed) Borasky 2014-09-26 23:36:18 UTC
ls -l /usr/lib/node_modules/glob/node_modules
total 16
drwxr-xr-x. 3 nobody znmeb 4096 Sep 26 16:00 graceful-fs
drwxr-xr-x. 2 nobody znmeb 4096 Sep 26 16:00 inherits
lrwxrwxrwx. 1 root   root    32 Jun  7 10:52 inherits;5425f221 -> /usr/lib/node_modules/inherits@2
lrwxrwxrwx. 1 root   root    32 Jun  7 10:52 inherits;5425f243 -> /usr/lib/node_modules/inherits@2
lrwxrwxrwx. 1 root   root    32 Jun  7 10:52 inherits;5425f28a -> /usr/lib/node_modules/inherits@2
lrwxrwxrwx. 1 root   root    32 Jun  7 10:52 inherits;5425f452 -> /usr/lib/node_modules/inherits@2
lrwxrwxrwx. 1 root   root    32 Jun  7 10:52 inherits;5425f6d5 -> /usr/lib/node_modules/inherits@2
drwxr-xr-x. 4 nobody znmeb 4096 Sep 26 16:00 minimatch
drwxr-xr-x. 4 nobody znmeb 4096 Sep 26 16:00 once

cat /usr/lib/node_modules/glob/package.json
cat: /usr/lib/node_modules/glob/package.json: No such file or directory

Comment 3 T.C. Hollingsworth 2014-09-26 23:45:31 UTC
(In reply to M. Edward (Ed) Borasky from comment #2)
> cat /usr/lib/node_modules/glob/package.json
> cat: /usr/lib/node_modules/glob/package.json: No such file or directory

This file should definitely exist if the folder /usr/lib/node_modules/glob exists.  You seem to have an existing installation of nodejs-glob that is corrupted for some reason.

Does rpm report it to be installed?

% rpm -q nodejs-glob

If so, try removing it and clean up the mess and retry installing it:

# yum remove nodejs-glob
# rm -rf /usr/lib/node_modules/glob
# yum install nodejs-glob

If not, skip the first command:

# rm -rf /usr/lib/node_modules/glob
# yum install nodejs-glob

This should return everything to a working state.

Comment 4 M. Edward (Ed) Borasky 2014-09-26 23:51:48 UTC
Ah - OK - go ahead and close this! Somehow the devassistant dependency installer is hosing up the Node.js package structure - see https://bugzilla.redhat.com/show_bug.cgi?id=1142766#c4 for how it's happening.

Comment 5 M. Edward (Ed) Borasky 2014-09-27 03:21:58 UTC
Created attachment 941772 [details]
screenshot of DevAssistant requesting install of 'glob' while it's already there

Current state of the system:

node.js and npm and nodejs-glob are all installed, as are the RPM dependencies devassistant wants to make an Express project:

1. Open devassistant
2. Create an Express.js project using the 'deps-only' checkbox
3. DevAssistant tries to install 'glob' via NPM - see screenshot

glob is there:

$ yum list installed|grep nodejs-glob
nodejs-glob.noarch            3.2.6-2.fc21          @fedora                     

If I allow it to install 'glob' from NPM it says it has done so, but re-running the project creation doesn't recognize that it's there and asks me to install it again!

It appears to have installed a local version of glob-4.0.6 in my home directory; there are files in ~/node_modules and ~/.npm. But I don't think DevAssistant is looking there. Perhaps there's an environment variable I need to set before starting DevAssistant.

Comment 6 M. Edward (Ed) Borasky 2014-09-27 03:26:20 UTC
I suspect this will go away when glob-4.0.6 makes it into the repositories -  1030898

Comment 7 M. Edward (Ed) Borasky 2014-11-20 09:39:01 UTC
This has gone away, although I can't determine which new package fixed it. DevAssistant installs 'glob' from an RPM, discovers it needs a newer version and summons npm to install it. npm then goes and gets glob 4.2.0

Comment 8 M. Edward (Ed) Borasky 2014-11-29 05:41:01 UTC
You can close this - it now works as of devassistant-0.9.3-2.fc21

Comment 9 Kristjan Stefansson 2016-04-19 16:37:27 UTC
I'm getting this problem:
Any idea's???


root ~ # dnf update -y
Failed to synchronize cache for repo 'home_tpokorra_mono', disabling.
Last metadata expiration check: 0:39:07 ago on Tue Apr 19 15:57:01 2016.
Dependencies resolved.
=============================================================================================================================================================
 Package                                   Arch                             Version                                   Repository                        Size
=============================================================================================================================================================
Upgrading:
 nodejs-inherits                           noarch                           2.0.1-6.fc23                              fedora                            13 k

Transaction Summary
=============================================================================================================================================================
Upgrade  1 Package

Total download size: 13 k
Downloading Packages:
nodejs-inherits-2.0.1-6.fc23.noarch.rpm                                                                                      593 kB/s |  13 kB     00:00    
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                         10 kB/s |  13 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Upgrading   : nodejs-inherits-2.0.1-6.fc23.noarch                                                                                                      1/2 
Error unpacking rpm package nodejs-inherits-2.0.1-6.fc23.noarch
Error unpacking rpm package nodejs-inherits-2.0.1-6.fc23.noarch
error: unpacking of archive failed on file /usr/lib/node_modules/inherits: cpio: rename
nodejs-inherits-2.0.1-6.fc23.noarch was supposed to be installed but is not!
  Verifying   : nodejs-inherits-2.0.1-6.fc23.noarch                                                                                                      1/2 
nodejs-inherits-2.0.1-5.fc21.noarch was supposed to be removed but is not!
  Verifying   : nodejs-inherits-2.0.1-5.fc21.noarch                                                                                                      2/2 

Failed:
  nodejs-inherits.noarch 2.0.1-6.fc23                                                                                                                        

Complete!


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