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!
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!
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
(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.
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.
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.
I suspect this will go away when glob-4.0.6 makes it into the repositories - 1030898
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
You can close this - it now works as of devassistant-0.9.3-2.fc21
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!