Giter Site home page Giter Site logo

Comments (19)

819295524 avatar 819295524 commented on July 29, 2024

系统是 windows11

from mometa.

imcuttle avatar imcuttle commented on July 29, 2024

see #16
推荐还是换成 类 linux shell,或者 mac 电脑 😢

from mometa.

819295524 avatar 819295524 commented on July 29, 2024

QQ图片20220120163137
换了linux 也一样 只能用mac吗

from mometa.

imcuttle avatar imcuttle commented on July 29, 2024

具体是什么原因呢,截图可以全一些

from mometa.

gongzhaohui avatar gongzhaohui commented on July 29, 2024

windows环境设置环境变量,参考https://stackoverflow.com/questions/40806796/setting-environment-variables-package-json-in-windows-10

from mometa.

imcuttle avatar imcuttle commented on July 29, 2024

@gongzhaohui 由于本人没有windows环境,所以推荐使用 linux shell 来执行
不保证 windows 能持续兼容

from mometa.

darkread avatar darkread commented on July 29, 2024

pnpm -v
6.28.0
node -v
v12.17.0
image
同样由这个问题,能否给出一个运行环境,我的是ubuntu 20.04,用的是windows wsl2子系统。

from mometa.

imcuttle avatar imcuttle commented on July 29, 2024

pnpm -v

6.28.0

node -v

v12.17.0

image

同样由这个问题,能否给出一个运行环境,我的是ubuntu 20.04,用的是windows wsl2子系统。

mac系统或者linux系统,你这个错误应该是不支持 xx=abc 这种环境变量赋值

from mometa.

leehomeok avatar leehomeok commented on July 29, 2024

pnpm 貌似不兼容window?

from mometa.

gongzhaohui avatar gongzhaohui commented on July 29, 2024

pnpm -v
6.28.0
node -v
v12.17.0
image
同样由这个问题,能否给出一个运行环境,我的是ubuntu 20.04,用的是windows wsl2子系统。

mac系统或者linux系统,你这个错误应该是不支持 xx=abc 这种环境变量赋值

改成
"set NODE_OPTIONS=\"$INNER_NODE_OPTIONS\" && set CLIENT_RENDER=1 && node scripts/start.js"
可以过。

from mometa.

gongzhaohui avatar gongzhaohui commented on July 29, 2024

pnpm 貌似不兼容window?

不是pnpm的问题。1个是 执行node脚本时,前面要加node,形如node script。还有1个是设置环境变量。
例如
"set NODE_OPTIONS=\"$INNER_NODE_OPTIONS\" && set CLIENT_RENDER=1 && node scripts/start.js"

from mometa.

wewaa avatar wewaa commented on July 29, 2024

"scripts": {
"start:cr": "set NODE_OPTIONS="$INNER_NODE_OPTIONS" && set CLIENT_RENDER=1 && node scripts/start.js",
"start:cr:debug": "INNER_NODE_OPTIONS=--inspect npm run start:cr",
"start": "node scripts/start.js",
"build": "node scripts/build.js"
},

Error: Cannot find module 'E:\mometa\packages\editor\node_modules@mometa\fs-handler\lib'

from mometa.

imcuttle avatar imcuttle commented on July 29, 2024

欢迎有win环境的同学提pr解决,但需保证mac unix系统也正常,可以使用 cross-env 赋值,甚至后续加上e2e测试在流水线中,同时加上win环境测试 就更好了

from mometa.

gongzhaohui avatar gongzhaohui commented on July 29, 2024

欢迎有win环境的同学提pr解决,但需保证mac unix系统也正常,可以使用 cross-env 赋值,甚至后续加上e2e测试在流水线中,同时加上win环境测试 就更好了

我不太懂git,可能你可以建一个win branch,只包含差异部分。现阶段我觉得可以只包含所有package.json,我不知道行不行得通,也不会实现。

from mometa.

gongzhaohui avatar gongzhaohui commented on July 29, 2024

我的错误,pnpm i没结束。端口占用,我改成8585,仍然占用。post install 在哪里写的?
`[MMS] run on http://localhost:8585
│ events.js:353

│ 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.`

from mometa.

birdmanmandbir avatar birdmanmandbir commented on July 29, 2024

可以用wsl

from mometa.

HZZformGD avatar HZZformGD commented on July 29, 2024

@imcuttle 我也有这样的问题。 后面通过wsl2+子系统 Ubuntu 解决了。 我是win11 win10也一样可以的(win7 就不用我说了吧 再见了)

from mometa.

chang-ke avatar chang-ke commented on July 29, 2024

直接用 cross-env 这个 npm 包不就行了,跨平台设置环境变量很简单

from mometa.

819295524 avatar 819295524 commented on July 29, 2024

windows环境设置环境变量,参考https://stackoverflow.com/questions/40806796/setting-environment-variables-package-json-in-windows-10

谢谢🙏 我准备去试试

from mometa.

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.