我输入"npm start"后,我不知道为什么它会给我错误.我正在尝试使用相同的WIFI打开我的React Native项目.我认为这是关于港口的.
这是错误:
Loading dependency graph...events.js:183
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::8081
at Server.setupListenHandle [as _listen2] (net.js:1360:14)
at listenInCluster (net.js:1401:12)
at Server.listen (net.js:1485:7)
at D:\rnprojects\testproject\node_modules\metro\src\index.js:156:18
at new Promise (<anonymous>)
at Object.<anonymous>
(D:\rnprojects\testproject\node_modules\metro\src\index.js:155:12)
at Generator.next (<anonymous>)
at step (D:\rnprojects\testproject\node_modules\metro\src\index.js:47:262)
at D:\rnprojects\testproject\node_modules\metro\src\index.js:47:422
at <anonymous>
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! testproject@0.0.1 start: `node node_modules/react-native/local-
cli/cli.js start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the testproject@0.0.1 start script.
npm …
Run Code Online (Sandbox Code Playgroud)