react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

[npm-issue] packages removed / not available after install

Open creative-git opened this issue 9 years ago • 7 comments

after running "npm i react-native-firebase --save" i get the following message: **added 31 packages, removed 649 packages and updated 113 packages in 19.899s**

and when i try to run "react-native run-ios", i get "Command run-ios unrecognized"

what am doing wrong ?

creative-git avatar Jun 22 '17 08:06 creative-git

Same here, the install removes all of the react native packages etc for some reason

Hmm this is a weird one - what are your npm versions @barjas @SamMatthewsIsACommonName - this may be a npm v5 issue - can you down grade your npm and give it a whirl - see if it's actually that?

Salakar avatar Jun 22 '17 15:06 Salakar

OK I will do after dinner. My project is now broken again so I need to start a new one. I've been battling cocoapods/ problems with latest react native for last 5 hours straight and about to pull my hair out haha

Looks like other npm 5 users are facing the same issue:

https://github.com/npm/npm/issues/17379 https://github.com/npm/npm/issues/17384

Rollback to 4 for now and you should be good.

Salakar avatar Jun 22 '17 15:06 Salakar

Will leave this open for now until the npm issue is resolved.

Salakar avatar Jun 22 '17 16:06 Salakar

Sometimes I have to switch to yarn if npm install have problem (with npm 5.0.3 since it comes with node 8.1.2 by default)

guhungry avatar Jun 26 '17 04:06 guhungry

@Salakar according to https://github.com/npm/npm/issues/17384 this was fixed in npm 5.1.0. I've just updated to npm 5.3.0 and everything seemed to work ok, so will close this issue.

chrisbianca avatar Jul 20 '17 07:07 chrisbianca