ReactJS编译,甚至在Local主机上都没有运行,甚至更改端口
我有问题。几天前,我的应用程序运行正常,但是由于某种原因,我无法在Localhost上运行它:3000。我什至尝试使用IP地址,但仍然没有运行。在搜索可能的解决方案时,我试图将端口更改为80或4500,但是,即使这样做,我也无法在资源管理器中打印项目。
这很奇怪,因为我收到的消息是代码已成功编译。
[这是我得到的消息汇编] [1] [1]:https://i.sstatic.net/fsiv0.png
i,但是在运行应用程序时会收到一些警告:
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN @apideck/[email protected] requires a peer of ajv@>=8 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>= 2.7 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@^17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @types/react@^17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @types/react-dom@^17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^16.8.0 || ^17 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
audited 1454 packages in 3.088s
据我所知。此警告不会影响应用程序。但是,我将感谢我可以探索的其他解决方案以使其运行的一些反馈。
先感谢您!
I have a problem. Some days ago my application was running ok, but for some reason now I can't run it on localhost:3000. I even tried with the IP address, but still doesn't run. Searching for possible solutions, I tried to change the port to 80 or 4500, however, even doing that change I can't print the project in the explorer.
It's very odd, because I get the message that the code was compiled successfully.
[This is the message compilation that I get][1]
[1]: https://i.sstatic.net/FsIv0.png
I, however, get some warnings when I run the application:
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN @apideck/[email protected] requires a peer of ajv@>=8 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>= 2.7 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@^17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @types/react@^17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @types/react-dom@^17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^16.8.0 || ^17 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
audited 1454 packages in 3.088s
As far as I know. This warnings doesn't affect the application. However, I would appreciate some feedback of what other solutions I can explore to make it run.
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论