2017-01-13 4 views
-2

реагировать-родной run-android. сервер не работает, я не знаю, как его решить. надеюсь, кто-то может мне помочь.реакция-native start faild, npm start faild. проект не запускается

реакция-родной запуск faild.

npm ERR! Darwin 16.3.0 
npm ERR! argv "/usr/local/Cellar/[email protected]/5.12.0/bin/node"  
"/usr/local/bin/npm" "start" 
npm ERR! node v5.12.0 
npm ERR! npm v3.8.6 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] start: `node node_modules/react-native/local- 
cli/cli.js start` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node node_modules/react- 
native/local-cli/cli.js start'. 
npm ERR! Make sure you have the latest version of node.js and npm 
installed. 
npm ERR! If you do, this is most likely a problem with the 1 package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node node_modules/react-native/local-cli/cli.js start 
npm ERR! You can get information on how to open an issue for this  
project with: 
npm ERR!  npm bugs 1 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls 1 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/apple/Desktop/project/reactproject/IRunning/npm-debug.log 

.

Последний Логин: Пт 13 января 9:45:42 на ttys000 AppledeMacBook-Pro: ~ яблоко $
/Users/яблоко/Desktop/проект/reactproject/IRunning/node_modules/ .0.36.0 @ реагирующего native/packager/launchPackager.command; Выход; ~/Desktop/project/reactproject/IRunning/node_modules/[email protected]
native/packager ~ Сканирование 1631 папки для символических ссылок в/Пользователи/apple/Desktop/project/reactproject/IRunning/node_modules (30ms)

┌──────────────────────────────────────────────────────────────────────── ────┐ 
│ Running packager on port 8081.               

│ 
│                      
│ 
│ Keep this packager running while developing on any JS projects. Feel  │ 
│ free to close this tab and run your own packager instance if you   
│ 
│ prefer.                  
│ 
│                     
│ 
│ https://github.com/facebook/react-native           
│ 
│                       
│ 
└────────────────────────────────────────────────────────────────────────────┘ 
Looking for JS files in 

Cannot read property 'on' of undefined 

~ 
Process terminated. Press <enter> to close the window 

ответ

0

Похоже, вы должны переустановить или обновить node.js и npm. Попробуйте следовать шаги инсталляции, на этой странице еще раз:

https://facebook.github.io/react-native/docs/getting-started.html#content

Также убедитесь, что вы следующие инструкции для правильной системы вы используете

Смежные вопросы