-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Packager isn't working for my hello world #349
Comments
hello! can you try installing watchman? https://facebook.github.io/watchman/ basically just install it then try running |
Tried Following Stackoverflow tips, I removed node_modules directory and tried
I'm really having no idea of what to do. I just want to create my "hello world". Anyway, my package json shows: "dependencies": {
"expo": "^19.0.0",
"react": "^16.0.0-alpha.12",
"react-native": "^0.46.1"
} |
Tried Since I have been the whole day trying this "quick method", I'll go for Visual Studio and/or pure react-native see if I can get better results. |
I have the exact same issue. Prop-types and createClass were deprecated on the newest version of react. I believe there are some libraries in react-native that still use these. |
Hey I had the same problem and this helped me: |
I indeed got better results trying the "react-native-cli" method. That said, I won't try @Brejw15 suggestion, but I still would like to know what these command lines are doing (and why). Won't close the issue either, since it seems to be a bug. |
I don't know if it's somehow related to this: But just saying, I'm not getting any errors at all. It just gets stuck at "starting packager" forever. |
$ npm start --verbose
npm info it worked if it ends with ok
npm verb cli [ '/Users/limichange/.nvm/versions/node/v8.3.0/bin/node',
npm verb cli '/Users/limichange/.nvm/versions/node/v8.3.0/bin/npm',
npm verb cli 'start',
npm verb cli '--verbose' ]
npm info using npm@5.3.0
npm info using node@v8.3.0
npm verb run-script [ 'prestart', 'start', 'poststart' ]
npm info lifecycle rn-test2@0.1.0~prestart: rn-test2@0.1.0
npm info lifecycle rn-test2@0.1.0~start: rn-test2@0.1.0
> rn-test2@0.1.0 start /Users/limi/testCode/rn-test2
> react-native-scripts start
06:29:51: Starting packager... me too. |
I'm not an expert, but what do you see when you type: $ DEBUG=* npm start ? |
|
Have you tried a lower version of node (LTS version 6.x) and yarn instead of npm? |
@baptistemanson Thank you so much. I have solved it. It's a network problem. |
I did tried two different networks and yarn With no success. |
Sorry! I want to cheer you up. Must be not fun. $ DEBUG=* npm start You can copy the trace and I'll dig in your logs. |
@Mazuh you should try @Brejw15's solution. You can refer to #234. |
you can try this. turn off your wifi, and run it. |
@Mazuh I don't think you installed watchman correctly, |
Description
I'm trying to start a new app following the readme steps. But
npm start
is taking too long.I never used npm before, just saying. My guess it's some dependence is missing, I even tried
npm install -g react
with no success (npm start
keeps taking too long). I'm lost here.Expected Behavior
Since it's the very first time I'm trying to run this, I don't really know what should be happening here.
Observed Behavior
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-scripts
:InfoBusUFRN-App@0.1.0 /home/mazuh/Projects/InfoBusUFRN-App
└── react-native-scripts@1.1.0
npm ls react-native
:InfoBusUFRN-App@0.1.0 /home/mazuh/Projects/InfoBusUFRN-App
└── react-native@0.46.4
npm ls expo
:└─┬ expo@19.0.1
└── UNMET PEER DEPENDENCY react@>=15.3.1
npm ERR! peer dep missing: react@>=15.3.1, required by lottie-react-native@1.1.1
npm ERR! peer dep missing: react@>=15.4.0, required by react-native-branch@2.0.0-beta.3
node -v
:v6.11.2
npm -v
:3.10.10
yarn --version
:Not installed.
watchman version
:Not found.
The text was updated successfully, but these errors were encountered: