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

Fail when run react-native link, missing module 'inquirer' and 'mute-stream' from node_modules folder after install react-native 0.46.4 #15099

Closed
ibrahimker opened this issue Jul 19, 2017 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@ibrahimker
Copy link

After run npm install react-native@0.46.4, I try to run react-native link. However I got the following error

Error: Cannot find module 'inquirer'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:/Git/cancure/node_modules/react-native/local-cli/li
nk/pollParams.js:1:16)
    at Module._compile (module.js:569:30)
    at loader (C:\Git\cancure\node_modules\babel-register\lib\node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (C:\Git\cancure\n
ode_modules\babel-register\lib\node.js:154:7)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
Error: Cannot find module 'mute-stream'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Git\cancure\node_modules\inquirer\lib\ui\baseUI.js
:3:18)
    at Module._compile (module.js:569:30)
    at Module._extensions..js (module.js:580:10)
    at Object.require.extensions.(anonymous function) [as .js] (C:\Git\cancure\n
ode_modules\babel-register\lib\node.js:152:7)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)

Obviously running npm install inquirer mute-stream solve the issue, but I still confure why the module isn't installed by default

@hramos
Copy link
Contributor

hramos commented Jul 19, 2017

Thanks for reporting the issue. What is the state of the project prior to installing RN 0.46.4? Does this reproduce with react-native-upgrade?

@devjaw
Copy link

devjaw commented Jul 20, 2017

use react-native-git-upgrade and the problem will be solved

@hramos hramos closed this as completed Jul 20, 2017
@hramos
Copy link
Contributor

hramos commented Jul 20, 2017

#answered

@facebook facebook locked as resolved and limited conversation to collaborators Jul 20, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants