小编iam*_*dev的帖子

反应:npm start - windows 找不到本地主机

我正在尝试遵循基本的 react-build-app 教程。

环境

我在 Windows 10 上使用 Ubuntu。

节点版本:v13.3.0

NPM 版本:6.13.1

到目前为止,我做到了,

npm install -g create-react-app

create-react-app calculator

cd calculator

npm start

问题

当我运行 npm start 时,我从 Windows 弹出对话框说,Windows cannot find '\https://localhost:3000/\'. Make sure you typed the name correctly, and then try again. 这是错误的屏幕截图

但是,在 cli 中,我看到


 Local:            http://localhost:3000/
 On Your Network:  http://192.168.56.1:3000/

Note that the development build is not optimized.
To create a production build, use npm run build.```
Run Code Online (Sandbox Code Playgroud)

但是当我打开浏览器并转到http://localhost:3000/ 时,我只看到一个空白页面,而不是正常的 React 徽标。

预期产出

转到 …

ubuntu localhost node.js npm reactjs

7
推荐指数
1
解决办法
6805
查看次数

标签 统计

localhost ×1

node.js ×1

npm ×1

reactjs ×1

ubuntu ×1