2017-07-25 27 views
0

成功創建反應原生後,我嘗試用npm start初始化項目。即使在2小時後,它也沒有完成裝載。基本的例子在等待之後已經完成了幾次,但是當我用更高級的代碼添加代碼時,它永遠不會結束。我使用npm 4.2.0和節點7.10.0。我無法找出npm start的功能。它需要下載很多嗎?如果是這樣,我可能會知道爲什麼它永遠不會結束,因爲我在印度的一個偏遠的地方與非常蹩腳的互聯網。創建反應原生npm開始掛起

sudo npm start --verbose 
npm info it worked if it ends with ok 
npm verb cli [ '/usr/local/bin/node', 
npm verb cli '/usr/local/bin/npm', 
npm verb cli 'start', 
npm verb cli '--verbose' ] 
npm info using [email protected] 
npm info using [email protected] 
npm verb run-script [ 'prestart', 'start', 'poststart' ] 
npm info lifecycle [email protected]~prestart: [email protected] 
npm info lifecycle [email protected]~start: [email protected] 

> [email protected] start /home/piepongwong/Programming/reactNativeEx/cameraTest 
> react-native-scripts start 

9:35:47 PM: Starting packager... 

....掛起永遠

+0

我在create-react-native-app github https://github.com/react-community/create-react-native-app/issues/234l上發現了一個未解決的問題。在「npm start」之前運行「sudo sysctl -w fs.inotify.max_user_watches = 10000」加速了示例項目的過程。我現在要測試它的更先進的東西。 – Piepongwong

回答

0

我已經找到了一個開放的問題上建立反應的原生應用程序內的github github.com/react-community/create-react-native-app/issues/23 4。在「npm start」之前運行「sudo sysctl -w fs.inotify.max_user_watches = 10000」可以加速進程。