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 removes all modules #1101

Closed
Karsens opened this issue Jul 4, 2017 · 7 comments
Closed

npm install removes all modules #1101

Karsens opened this issue Jul 4, 2017 · 7 comments

Comments

@Karsens
Copy link

Karsens commented Jul 4, 2017


What's going on?
When I hit npm install --save react-native-vector-icons, it removes all modules and the whole app breaks. I don't know how to fix this :(
I get this after npm installing: added 2 packages, removed 717 packages and updated 61 packages in 41.429s


Steps to reproduce

I installed ignite with ignite new ignite4 (because I f***ed up so many times)


ignite doctor results:

System
platform win32
arch x64
cpu 4 cores Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
directory C:\Users\karse\js\ignite4

JavaScript
node 8.1.3 C:\Program Files\nodejs\node.EXE
npm 5.0.4 C:\Program Files\nodejs\npm.CMD
yarn 0.27.5 C:\Program Files (x86)\Yarn\bin\yarn.CMD

React Native
react-native-cli 2.0.1

Ignite
ignite 2.0.0 C:\Users\karse\AppData\Roaming\npm\ignite.CMD

Android
java - C:\ProgramData\Oracle\Java\javapath\java.EXE
android home - C:\Users\karse\AppData\Local\Android\sdk

@Karsens
Copy link
Author

Karsens commented Jul 4, 2017

Hmmmmm I might have found the problem...

Am I supposed to use yarn instead of npm?

If so, why?

I just hit yarn install and now it did install 740 packages or so...

Why doesn't npm work?

@skellock
Copy link
Contributor

skellock commented Jul 4, 2017

Good question. I've heard about as well. Is it this issue?

Not quite sure what's going on.

Give yarn a shot and see if the results are less rage-inducing.

@Karsens
Copy link
Author

Karsens commented Jul 5, 2017

Thanks. Yeah. Yarn seems to work fine! :)

@skellock
Copy link
Contributor

skellock commented Jul 5, 2017

Ya, npm 5 is having a few problems. Sounds like they're fixing it and should be available soon.

@xwartz
Copy link

xwartz commented Aug 20, 2017

@skellock Have they fixed it?

@skellock
Copy link
Contributor

I’m not sure what their status is. Not having issues here tho. 🤞

@akuma06
Copy link

akuma06 commented Sep 4, 2018

I had this issue today. Everything worked fine after a new ignite app initialization. Then I wanted to add js-base64 module with a npm install: it broke everything 😢. Will try with yarn if it solves it.

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

4 participants