Bug 1087065

Summary: NPM search not work correct with nodejs 0.10.26
Product: [Fedora] Fedora Reporter: Maksim Zubkov <maksim.v.zubkov>
Component: npmAssignee: T.C. Hollingsworth <tchollingsworth>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: jamielinux, lnie, tchollingsworth
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: npm-1.3.6-5.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-01 07:04:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Maksim Zubkov 2014-04-13 18:42:44 UTC
Description of problem:

"search" command of npm did not work correct.

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

nodejs.x86_64 0.10.26-1.fc20 @updates
npm.noarch    1.3.6-4.fc20   @fedora

How reproducible:

Steps to Reproduce:
1. $ sudo yum install npm
2. $ npm cache clear -f
2. $ npm search rx


Actual results:

$ npm search rx
npm WARN Building the local index for the first time, please be patient
npm http GET https://registry.npmjs.org/-/all
npm http 200 https://registry.npmjs.org/-/all
npm ERR! TypeError: Object.keys called on non-object
npm ERR!     at Function.keys (native)
npm ERR!     at stripData (/usr/lib/node_modules/npm/lib/search.js:88:28)
npm ERR!     at Array.map (native)
npm ERR!     at filter (/usr/lib/node_modules/npm/lib/search.js:72:6)
npm ERR!     at /usr/lib/node_modules/npm/lib/search.js:62:21
npm ERR!     at /usr/lib/node_modules/npm-registry-client/lib/get.js:93:14
npm ERR!     at /usr/lib/node_modules/graceful-fs/graceful-fs.js:103:5
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm->

npm ERR! System Linux 3.13.9-200.fc20.x86_64
npm ERR! command "node" "/usr/bin/npm" "search" "rx"
npm ERR! cwd ..........
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.3.6
npm ERR! type called_on_non_object
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     ..........
npm ERR! not ok code 0


Expected results:

List of founded packages.

Additional info:

https://github.com/npm/npm/issues/3443

Developers recommend to upgrade package

Comment 1 T.C. Hollingsworth 2014-04-14 01:16:08 UTC
I hope to be able to refresh the version of npm in Fedora soon, but in the meantime I've backported the commit that fixes 'npm search'.

The update system will automatically post to this bug when a fixed package is ready.  Thanks for the report!

Comment 2 Fedora Update System 2014-04-14 01:23:55 UTC
npm-1.3.6-5.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/npm-1.3.6-5.fc20

Comment 3 Fedora Update System 2014-04-14 01:25:22 UTC
npm-1.3.6-5.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/npm-1.3.6-5.fc19

Comment 4 Fedora Update System 2014-04-14 01:26:01 UTC
npm-1.3.6-5.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/npm-1.3.6-5.el6

Comment 5 lnie 2014-04-14 07:12:17 UTC
npm-1.3.6-5.fc20 works

Comment 6 Fedora Update System 2014-04-15 15:43:12 UTC
Package npm-1.3.6-5.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing npm-1.3.6-5.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-5133/npm-1.3.6-5.fc20
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2014-05-01 07:04:27 UTC
npm-1.3.6-5.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2014-05-03 15:29:23 UTC
npm-1.3.6-5.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2014-05-03 19:58:13 UTC
npm-1.3.6-5.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.