-
Notifications
You must be signed in to change notification settings - Fork 112
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
Running rn-nodeify breaks node_modules #42
Comments
@you-fail-me pretty strange, haven't experienced this myself. Care to investigate and submit a PR? |
@mvayngrib I'm trying to investigate that but some help, suggestions, advice etc would be very helpful. |
@you-fail-me absolutely. The gist is: the --install part the --hack part Feel free to ask me about what any particular part does. |
For some reason it deletes stuff:
@mvayngrib I thought it shouldn't remove anything, but it removes 899(!) packages... why would it? |
oh, interesting! Those last lines are output from |
another thought: maybe it's hitting the maximum number of open files on your system and ends up corrupting the package.json files in the tree. If that's the case, we'll need to batchify some of the operations |
@you-fail-me i also see a bunch of issues on npm, like this one: infinitered/ignite#1101 Are you using npm version 5? |
@mvayngrib thanks for pointing me to npm. I'm using yarn but have npm 5 installed, and turns out rn-nodeify was using it. downgrading to npm 4 seems to solve this, at least my packages no longer get removed. Thanks a lot and sorry for the issue, actually related to npm, but not to rn-nodeify |
@you-fail-me no worries, it's good for me to be aware of the npm issue anyway :) |
+1 have the same with npm 5 |
+1 npm 5.3.0 |
I see this behavior, as well, with npm 5.3.0 Specifically, after I get an empty node_modules/react-native folder. "postinstall": "rn-nodeify --install crypto,fs --hack" |
closing as it seems to be an npm issue, will re-open if proved otherwise |
@mvayngrib Now that npm is at version 6.13, telling users to choose npm 3 or yarn in order to use |
After running
./node_modules/.bin/rn-nodeify --install --hack
it does some weird thing to my react-native dep (turns the folder undernode_modules
into a bunch of empty folders):I thought it was something with
yarn
, but no, if I don't run rn-nodeify it's ok. Why? How can I fix?The text was updated successfully, but these errors were encountered: