Koj*_*ano 0 javascript node.js npm vue.js
我试图用 vue 制作一些应用程序并安装了 npm 命令。
当我运行“npm run serve”命令时,我收到以下消息。似乎我应该在“http://localhost:8080/”上运行应用程序并且能够访问示例页面,而不是像“x86_64-apple-darwin13.4.0:”这样的东西。
是否可以通过更改配置文件或其他内容来解决此问题?
App running at:
- Local: http://x86_64-apple-darwin13.4.0:8080/
- Network: http://x86_64-apple-darwin13.4.0:8080/
Note that the development build is not optimized.
To create a production build, run npm run build.
Run Code Online (Sandbox Code Playgroud)
我应该访问 http://localhost:8080/ 并且会得到一些示例页面。
小智 5
似乎您的主机环境已设置为x86_64-apple-darwin13.4.0,您应该可以bash_profile像这样
设置变量HOST="localhost"
之后重新加载环境 source ~/.bash_profile
| 归档时间: |
|
| 查看次数: |
506 次 |
| 最近记录: |