Skip to content
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

‘TZ’非Windows的命令 #5913

Closed
ZhoBudweiser opened this issue Dec 8, 2023 · 2 comments
Closed

‘TZ’非Windows的命令 #5913

ZhoBudweiser opened this issue Dec 8, 2023 · 2 comments

Comments

@ZhoBudweiser
Copy link
Contributor

问题描述

在参与贡献过程中,尝试调试项目代码时使用npm run dev和npm run test时都会出现以下问题

‘TZ’ 不是内部或外部命令,也不是可运行的程序
或批处理文件。

原因可能是这个命令在Windows系统下不适用,相应要使用set TZ=Asia/Shanghai。这可能是 #5776 中修改后造成的,在贡献文档中并未提及系统的限制或有其他说明,如果能够说明或修改那将是极好。

重现链接

No response

重现步骤

$ git clone git@github.com:antvis/G2.git

$ cd G2

$ npm install

$ npm run dev / $ npm run test

预期行为

No response

平台

  • 操作系统: Windows
  • 网页浏览器: Microsoft Edge

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@hustcc
Copy link
Member

hustcc commented Dec 8, 2023

可以增加 cross-env 解决,参考其他命令的写法!

有兴趣的来个 pr 解决吗?

@ZhoBudweiser
Copy link
Contributor Author

可以增加 cross-env 解决,参考其他命令的写法!

有兴趣的来个 pr 解决吗?

可以的!

@ZhoBudweiser ZhoBudweiser mentioned this issue Dec 9, 2023
2 tasks
@hustcc hustcc closed this as completed Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants