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

npm install -g react-native-cli errors #73

Open
juliepwchen opened this issue Jan 12, 2018 · 1 comment
Open

npm install -g react-native-cli errors #73

juliepwchen opened this issue Jan 12, 2018 · 1 comment

Comments

@juliepwchen
Copy link

juliepwchen commented Jan 12, 2018

I typed the command to install react-native-cli using "> npm install -g react-native-cli", and got the following error messages. Advise?

module.js:538
throw err;
^

Error: Cannot find module '../lib/utils/unsupported.js'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21
at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:92:3)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
Julies-Mac-mini:~ juliechen$ pwd
/Users/juliechen
Julies-Mac-mini:~ juliechen$ sudo npm install -g react-native-cli
Password:
module.js:538
throw err;
^

Error: Cannot find module '../lib/utils/unsupported.js'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21
at Object. (/usr/local/lib/node_modules/npm/bin/npm-cli.js:92:3)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)

@willcrumbley
Copy link

willcrumbley commented May 30, 2018

I had a similar error, and it seems that the internet thinks that errors of this kind are best resolved by removing & reinstalling node. It worked for me. See the top answer here:
https://stackoverflow.com/questions/33870520/npm-install-cannot-find-module-semver

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

2 participants