【发布时间】:2019-09-26 19:15:57
【问题描述】:
我正在尝试使用 React Native 我尝试运行应用程序 npm 开始
并收到此错误:
> ERROR Metro Bundler can't listen on port 8081 Loading dependency
> graph...npm ERR! code ELIFECYCLE npm ERR! errno 11 npm ERR!
> MyFirstDemo@0.0.1 start: `node
> node_modules/react-native/local-cli/cli.js start` npm ERR! Exit status
> 11 npm ERR! npm ERR! Failed at the MyFirstDemo@0.0.1 start script.
> npm ERR! This is probably not a problem with npm. There is likely
> additional logging output above. npm ERR! A complete log of this run
> can be found in: npm ERR!
> /home/nidhi/.npm/_logs/2018-09-04T12_11_05_454Z-debug.log
谁能帮帮我?
【问题讨论】:
-
您使用的是什么操作系统? Linux?
-
请编辑您的错误帖子,最后告诉我们您是使用原生反应还是世博会
-
@SGhaleb, Linux
-
您可以在终端中尝试 ...
lsof -i :8081以查看正在使用该端口的内容,然后按照此正确/安全地终止进程...。unix.stackexchange.com/questions/8916/… -
@SGhaleb 它现在正在工作。谢谢大家的回复。
标签: react-native npm