Coder Social home page Coder Social logo

Comments (4)

lianginx avatar lianginx commented on July 17, 2024

似乎是随机端口有问题的,你可以尝试 npm run dev --port 4000 主动指定一个端口

from chatgpt-nuxt.

lianginx avatar lianginx commented on July 17, 2024

我看了 Nuxt 框架的 Issue,也有人遇到了一样的问题,但我没有找到明确的解决方案

from chatgpt-nuxt.

gsshawn avatar gsshawn commented on July 17, 2024

昨天深入的调试了一下,根据大家给出方法,试了一下,先是看了一下版本,之前的node版本低,所以升级了一下,但是还是报错,接着在JSON中指定了端口和IP地址,也还是报错,调试发现拿到hostname不是想要的127.0.0.1,就在host文件中按照,127.0.0.1 XXX,设定了一下,重启项目,终于不报错了,访问时:127.0.0.1:3000,就可以了。
多谢各位。

from chatgpt-nuxt.

lianginx avatar lianginx commented on July 17, 2024

昨天深入的调试了一下,根据大家给出方法,试了一下,先是看了一下版本,之前的node版本低,所以升级了一下,但是还是报错,接着在JSON中指定了端口和IP地址,也还是报错,调试发现拿到hostname不是想要的127.0.0.1,就在host文件中按照,127.0.0.1 XXX,设定了一下,重启项目,终于不报错了,访问时:127.0.0.1:3000,就可以了。 多谢各位。

原来是 Host 的锅,学到了,感谢分享 😃👍🏼

from chatgpt-nuxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.