【发布时间】:2017-05-28 08:08:10
【问题描述】:
react-native run-android 。服务器出现故障,不知道怎么解决。希望有人可以帮助我。
react-native 启动失败。
npm ERR! Darwin 16.3.0
npm ERR! argv "/usr/local/Cellar/node@5/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! 1@1.1.1 start: `node node_modules/react-native/local-
cli/cli.js start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the 1@1.1.1 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
.
上次登录时间:1 月 13 日星期五 09:45:42 在 ttys000
AppledeMacBook-Pro:~ 苹果$
/Users/apple/Desktop/project/reactproject/IRunning/node_modules/
.0.36.0@react-native/packager/launchPackager.command ;出口;
~/Desktop/project/reactproject/IRunning/node_modules/.0.36.0@react-
本机/打包程序〜
在 /Users/apple/Desktop/project/reactproject/IRunning/node_modules 中扫描 1631 个文件夹中的符号链接(30 毫秒)
┌──────────────────────────────────────────────────────────────────────── ────┐
│ 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
【问题讨论】:
标签: npm react-native