老师你好,
没有更新,我重新下载试了一次,依旧不行,会不会是node.js版本和npm版本问题呢?
这是我的node.js版本: 18.17.1 npm版本是9.6.7
这是终端输出的内容
PS D:\React\cloud-doc> npm run dev
> cloud-doc@0.1.0 dev
> concurrently "npm start" "electron ."
[0]
[0] > cloud-doc@0.1.0 start
[0] > react-scripts start
[0]
[1]
[0] (node:19632) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
[0] (Use `node --trace-deprecation ...` to show where the warning was created)
[0] (node:19632) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
[0] Starting the development server...
[0]
[0] Compiled successfully!
[0]
[0] You can now view cloud-doc in the browser.
[0]
[0] Local: http://localhost:3000
[0] On Your Network: http://192.168.110.55:3000
[0]
[0] To create a production build, use npm run build.
然后我用npm start的时候react启动成功,但是npx electron . 的时候localhost 3000就拒绝访问。
npm run dev没有报错,但是没有弹出窗口