Bug 1596912

Summary: npm fails with "Error: cannot find module 'are-we-there-yet'
Product: [Fedora] Fedora Reporter: J <jman012345>
Component: npmAssignee: NodeJS Packaging SIG <nodejs-sig>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: athmanem, nodejs-sig, sgallagh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-06 17:24:13 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 J 2018-06-30 04:50:17 UTC
Description of problem:
npm fails to install any packages. Reinstallation of npm and nodejs do not fix the problem.

Version-Release number of selected component (if applicable):
Version      : 6.1.0
Release      : 1.10.5.0.1.fc29

How reproducible:
Always (on my system)

Steps to Reproduce:
1. sudo dnf install npm
2. npm i gitbook -g
3.

Actual results:
internal/modules/cjs/loader.js:596
    throw err;
    ^

Error: Cannot find module 'are-we-there-yet'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/usr/lib/node/.bundled/npm/npmlog/log.js:2:16)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)

Expected results:
Successful installation

Additional info:
The module "are-we-there-yet" exists on my system in /usr/lib/node_modules/npm/node_modules. I've tried adding this directory to my PATH and I get the same result trying to use npm.

Comment 1 Stephen Gallagher 2018-07-06 17:24:13 UTC

*** This bug has been marked as a duplicate of bug 1594647 ***