Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 'Cannot find module 'internal/util/types' error when running 'npm install' #170

Open
grzeczko opened this issue Jan 19, 2018 · 10 comments

Comments

@grzeczko
Copy link

I'm getting a 'Cannot find module 'internal/util/types' error when running 'npm install'.

Error: Cannot find module 'internal/util/types'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at evalmachine.:31:26
at Object. (/Users/.../Desktop/mongotron-master/node_modules/bower/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)

I'm using:
Node v8.9.4
NPM v5.6.0

@mikk351
Copy link

mikk351 commented Feb 28, 2018

Same error with same node and npm version. On fedora 27.

@OwlLaboratory
Copy link

Same error !

@T-vK
Copy link

T-vK commented Mar 19, 2018

Same here on Fedora 27 as well.

@creative-cranels
Copy link

Same on Ubuntu 16.04 LTS :(

@danangpn
Copy link

same error on Fedora 28

@nisargjoshi95
Copy link

I am getting the same error with yarn and npm.

Fedora 28
yarn v1.7.0
npm v5.6.0
node v8.11.3

@echo66
Copy link

echo66 commented Aug 25, 2018

I'm getting the same error

@neonihil
Copy link

neonihil commented Oct 11, 2018

I ran into the same issue on fedora 28. It seems to be problem with bower as it fails during the bower install phase of npm install.

npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js

> electron-prebuilt@0.36.7 postinstall /home/vagrant/mongotron/node_modules/electron-prebuilt
> node install.js

Downloading electron-v0.36.7-linux-x64.zip
[============================================>] 100.0% of 38.36 MB (1.17 MB/s)

> Mongotron@1.0.0-alpha.5 postinstall /home/vagrant/mongotron
> bower install && gulp dev-sym-links

module.js:550
    throw err;
    ^

Error: Cannot find module 'internal/util/types'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at evalmachine.<anonymous>:31:26
    at Object.<anonymous> (/home/vagrant/mongotron/node_modules/bower/node_modules/graceful-fs/fs.js:11:1)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Mongotron@1.0.0-alpha.5 postinstall: `bower install && gulp dev-sym-links`
npm ERR! Exit status 1
npm ERR! 

The bower team has a closed issue regarding this:

bower/bower#2497

The most upvoted comment is the one saying to use node < 7.0 (so like 6.9).

I'm not sure where to go from here.

@abileshkumart
Copy link

how to fix this error
error

@KaKi87
Copy link

KaKi87 commented Oct 16, 2019

This issue is more than a year old and it's still happening to me today. Please @officert say something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests