-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: 启动报错 附上环境和报错信息 #20
Comments
系统是 windows11 |
see #16 |
具体是什么原因呢,截图可以全一些 |
@gongzhaohui 由于本人没有windows环境,所以推荐使用 linux shell 来执行 |
pnpm 貌似不兼容window? |
不是pnpm的问题。1个是 执行node脚本时,前面要加node,形如node script。还有1个是设置环境变量。 |
"scripts": { Error: Cannot find module 'E:\mometa\packages\editor\node_modules@mometa\fs-handler\lib' |
欢迎有win环境的同学提pr解决,但需保证mac unix系统也正常,可以使用 cross-env 赋值,甚至后续加上e2e测试在流水线中,同时加上win环境测试 就更好了 |
我不太懂git,可能你可以建一个win branch,只包含差异部分。现阶段我觉得可以只包含所有package.json,我不知道行不行得通,也不会实现。 |
我的错误,pnpm i没结束。端口占用,我改成8585,仍然占用。post install 在哪里写的? │ throw er; // Unhandled 'error' event │ ^ │ Error: listen EADDRINUSE: address already in use 127.0.0.1:8585 │ at Server.setupListenHandle [as _listen2] (net.js:1318:16) │ at listenInCluster (net.js:1366:12) │ at GetAddrInfoReqWrap.doListen [as callback] (net.js:1503:7) │ at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:69:8) │ Emitted 'error' event on Server instance at: │ at emitErrorNT (net.js:1345:8) │ at processTicksAndRejections (internal/process/task_queues.js:82:21) { │ code: 'EADDRINUSE', │ errno: -4091, │ syscall: 'listen', │ address: '127.0.0.1', │ port: 8585 │ } │ ERROR: "build:runtime" exited with 1. └─ Failed in 9.3s ELIFECYCLE Command failed with exit code 1.` |
可以用wsl |
@imcuttle 我也有这样的问题。 后面通过wsl2+子系统 Ubuntu 解决了。 我是win11 win10也一样可以的(win7 就不用我说了吧 再见了) |
直接用 cross-env 这个 npm 包不就行了,跨平台设置环境变量很简单 |
谢谢🙏 我准备去试试 |
The text was updated successfully, but these errors were encountered: