http://bugzilla.opensuse.org/show_bug.cgi?id=1043965 Bug ID: 1043965 Summary: devel:languages:nodejs/nodejs8: Bug -- node-fetch-npm files not installed Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software Assignee: i@marguerite.su Reporter: somebody@froghat.ca QA Contact: opensuse-communityscreening@forge.provo.novell.com CC: amajer@suse.com Found By: --- Blocker: --- npm install doesn't work -- it looks like someone is missing a dependency that was accidentally removed by the spec file. # npm install asdfkj npm ERR! code MODULE_NOT_FOUND npm ERR! Cannot find module 'node-fetch-npm' npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2017-06-12T22_52_30_575Z-debug.log # cat /root/.npm/_logs/2017-06-12T22_52_30_575Z-debug.log 0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', 'asdfkj' ] 2 info using npm@5.0.0 3 info using node@v8.0.0 4 silly install loadCurrentTree 5 silly install readLocalPackageData 6 silly fetchPackageMetaData error for asdfkj@latest Cannot find module 'node-fetch-npm' 7 verbose stack Error: Cannot find module 'node-fetch-npm' 7 verbose stack at Function.Module._resolveFilename (module.js:485:15) 7 verbose stack at Function.Module._load (module.js:437:25) 7 verbose stack at Module.require (module.js:513:17) 7 verbose stack at require (internal/module.js:11:18) 7 verbose stack at Object.<anonymous> (/usr/lib64/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/index.js:6:15) 7 verbose stack at Module._compile (module.js:569:30) 7 verbose stack at Object.Module._extensions..js (module.js:580:10) 7 verbose stack at Module.load (module.js:503:32) 7 verbose stack at tryModuleLoad (module.js:466:12) 7 verbose stack at Function.Module._load (module.js:458:3) 7 verbose stack at Module.require (module.js:513:17) 7 verbose stack at require (internal/module.js:11:18) 7 verbose stack at Object.<anonymous> (/usr/lib64/node_modules/npm/node_modules/pacote/lib/fetchers/registry/fetch.js:7:15) 7 verbose stack at Module._compile (module.js:569:30) 7 verbose stack at Object.Module._extensions..js (module.js:580:10) 7 verbose stack at Module.load (module.js:503:32) 8 verbose cwd /root/DEV-507 9 verbose Linux 4.9.0-0.bpo.1-amd64 10 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "asdfkj" 11 verbose node v8.0.0 12 verbose npm v5.0.0 13 error code MODULE_NOT_FOUND 14 error Cannot find module 'node-fetch-npm' 15 verbose exit [ 1, true ] The `src` directory is missing under the `node-fetch-npm` package. That directory is where `node-fetch-npm` has all its definition. So it can't be imported. # ls /usr/lib64/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/ CHANGELOG.md LICENSE.md node_modules package.json README.md There is no implementation there. It looks like it is removed in the nodejs8.spec file at line 300: find %{buildroot}%{_libdir}/node_modules/npm -name "src" -print0 | xargs -0 rm -rf -- After commenting out that line and rebuilding the package, npm works. -- You are receiving this mail because: You are on the CC list for the bug.