{"action":"closed","issue":{"url":"https://api.github.com/repos/soliury/noder-react-native/issues/32","repository_url":"https://api.github.com/repos/soliury/noder-react-native","labels_url":"https://api.github.com/repos/soliury/noder-react-native/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/soliury/noder-react-native/issues/32/comments","events_url":"https://api.github.com/repos/soliury/noder-react-native/issues/32/events","html_url":"https://github.com/soliury/noder-react-native/issues/32","id":148878664,"number":32,"title":"执行 npm start 会出现错误","user":{"login":"TakWolf","id":6064962,"avatar_url":"https://avatars.githubusercontent.com/u/6064962?v=3","gravatar_id":"","url":"https://api.github.com/users/TakWolf","html_url":"https://github.com/TakWolf","followers_url":"https://api.github.com/users/TakWolf/followers","following_url":"https://api.github.com/users/TakWolf/following{/other_user}","gists_url":"https://api.github.com/users/TakWolf/gists{/gist_id}","starred_url":"https://api.github.com/users/TakWolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TakWolf/subscriptions","organizations_url":"https://api.github.com/users/TakWolf/orgs","repos_url":"https://api.github.com/users/TakWolf/repos","events_url":"https://api.github.com/users/TakWolf/events{/privacy}","received_events_url":"https://api.github.com/users/TakWolf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-16T18:35:30Z","updated_at":"2016-04-18T01:21:25Z","closed_at":"2016-04-18T01:21:25Z","body":"执行 npm start 会出现如下错误：\r\n![image](https://cloud.githubusercontent.com/assets/6064962/14582894/2212c580-0444-11e6-9a5d-98908a779764.png)\r\n\r\n全局环境中存在 react-native-cli\r\n![image](https://cloud.githubusercontent.com/assets/6064962/14582899/4ca563de-0444-11e6-8c06-2c9bb6fb2f9c.png)\r\n底下的内个 react-native: 0.23.1 貌似是项目自带的react-native依赖\r\n\r\n因为我在全局环境中运行时这样的：\r\n![image](https://cloud.githubusercontent.com/assets/6064962/14582909/8af8775c-0444-11e6-9a96-abf520252785.png)\r\n\r\n去搜了一下发现是一个普遍的问题：\r\nhttp://stackoverflow.com/questions/33908314/packager-wont-start\r\n猜测原因是执行npm start会造成react-native路径错误\r\n![image](https://cloud.githubusercontent.com/assets/6064962/14582918/eb0a2bd6-0444-11e6-863b-23ddabc71982.png)\r\n\r\n\r\n\r\n目前的解决方案是直接运行 react-native start 或者 直接运行 react-native run-android 可以正常启动。\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6064962/14582927/2e0959b6-0445-11e6-9880-5f1a87948294.png)\r\n\r\n"}}