React Native Server: packager/packager.sh: line 11: node: command not found

一笑奈何 提交于 2019-12-11 05:28:31

问题


I often get this exception trying to start a debugging session on Nuclide.

React Native Server: [...]/packager/packager.sh: line 11: node: command not found

Where [...] will represent the correct path to the packager

The server will indicate it's running, but it isn't. Running react-native run-ios from the command line will start its own packager session (successfully).

I also sometimes don't get this error message, but in either case, when I run react-native run-ios, a new packager will be started and the Simulator will indicate "Runtime is not ready for debugging" etc. And the error message always shows up when I restart the packager in Nuclide.

On Chrome, debugging works (although with extremely shaky support for debugger stops stopping at the right line, which why I'm trying Nuclide).

I did get it to work a few times. But it seems unreliable.

Any suggestions?


回答1:


Uninstalling and reinstalling Nuclide did the trick



来源:https://stackoverflow.com/questions/36535727/react-native-server-packager-packager-sh-line-11-node-command-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!