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

Windows系统,在项目根目录执行yarn bootstrap报错 #809

Closed
breezefaith opened this issue Mar 25, 2021 · 32 comments
Closed

Windows系统,在项目根目录执行yarn bootstrap报错 #809

breezefaith opened this issue Mar 25, 2021 · 32 comments
Assignees
Labels
type: bug 缺陷 Defects and unexpected behaviors

Comments

@breezefaith
Copy link
Contributor

根目录下执行yarn bootstrap命令时报错如下。看起来像是node_modules@antv\stylelint-config\node_modules.bin\run-s脚本中文件路径的问题 "$basedir/../../../../node_modules/npm-run-all/bin/run-s/index.js"
image
image

Your Environment

  • OS: Windows Server 2016 Standard
@breezefaith breezefaith added the type: bug 缺陷 Defects and unexpected behaviors label Mar 25, 2021
@breezefaith
Copy link
Contributor Author

好像是lerna的bug,在linux环境下lerna bootstrap安装完依赖后会创建可执行脚本的软链接,但是在windows环境下,是直接把可执行脚本复制到了相应的目录下,这就导致了找不到文件的问题

@NewByVector
Copy link
Contributor

感谢你提出的问题,有好的解决方案吗🧐

@zaiMoe
Copy link

zaiMoe commented Mar 28, 2021

好像是lerna的bug,在linux环境下lerna bootstrap安装完依赖后会创建可执行脚本的软链接,但是在windows环境下,是直接把可执行脚本复制到了相应的目录下,这就导致了找不到文件的问题

发现是yarn的问题:yarnpkg/yarn#4564, 挂了好几年了都没解决的问题......

@breezefaith
Copy link
Contributor Author

好像是lerna的bug,在linux环境下lerna bootstrap安装完依赖后会创建可执行脚本的软链接,但是在windows环境下,是直接把可执行脚本复制到了相应的目录下,这就导致了找不到文件的问题

发现是yarn的问题:yarnpkg/yarn#4564, 挂了好几年了都没解决的问题......

@breezefaith breezefaith reopened this Mar 29, 2021
@breezefaith breezefaith changed the title 根目录执行yarn bootstrap报错 Windows系统根目录执行yarn bootstrap报错 Mar 29, 2021
@breezefaith breezefaith changed the title Windows系统根目录执行yarn bootstrap报错 Windows系统,在项目根目录执行yarn bootstrap报错 Mar 29, 2021
@breezefaith
Copy link
Contributor Author

感谢你提出的问题,有好的解决方案吗🧐

根据zaiMoe所说的这是yarn的bug,我把lerna.json配置文件里的npmClient配置节改成了“npm”,然后执行npm run bootstrap,虽然速度慢点,但总算是把依赖都安装成功了

@zaiMoe
Copy link

zaiMoe commented Mar 29, 2021

感谢你提出的问题,有好的解决方案吗🧐

可以把bootstrap改一下:

"bootstrap": "yarn install --ignore-scripts && lerna run preinstall && yarn build:dev"

再把其他命令中的"prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'"中的单引号改成双引号,就能跑通过了,但是由ts编译错误

image

@x6-bot x6-bot bot added the stale Issue that may be closed soon due to the original author not responding any more. label Apr 19, 2021
@x6-bot x6-bot bot closed this as completed Apr 23, 2021
@NewByVector NewByVector reopened this Apr 25, 2021
@x6-bot x6-bot bot closed this as completed Apr 30, 2021
@NewByVector NewByVector reopened this May 1, 2021
@x6-bot x6-bot bot closed this as completed May 7, 2021
@NewByVector NewByVector reopened this May 7, 2021
@x6-bot x6-bot bot closed this as completed Jun 17, 2021
@NewByVector NewByVector reopened this Jun 21, 2021
@jerry-f
Copy link

jerry-f commented Jul 16, 2021

使用了命令之(yarn install --ignore-scripts && lerna run preinstall && yarn build:dev)后可以下载依赖了;
但是去到 examples/x6-app-draw 下执行yarn start 命令之后会报错; 依赖找不到(@antv/x6-react-components/es/toolbatr/style/index.css)

@x6-bot x6-bot bot removed the stale Issue that may be closed soon due to the original author not responding any more. label Jul 17, 2021
@x6-bot x6-bot bot added the stale Issue that may be closed soon due to the original author not responding any more. label Aug 6, 2021
@NewByVector NewByVector removed the stale Issue that may be closed soon due to the original author not responding any more. label Aug 30, 2021
@x6-bot x6-bot bot added the stale Issue that may be closed soon due to the original author not responding any more. label Sep 20, 2021
@NewByVector NewByVector removed the stale Issue that may be closed soon due to the original author not responding any more. label Sep 21, 2021
@ChendayUP
Copy link

感谢你提出的问题,有好的解决方案吗🧐

根据zaiMoe所说的这是yarn的bug,我把lerna.json配置文件里的npmClient配置节改成了“npm”,然后执行npm run bootstrap,虽然速度慢点,但总算是把依赖都安装成功了

然后执行npm run bootstrap 后还是报错
企业微信截图_16328163778987

@zaiMoe
Copy link

zaiMoe commented Sep 29, 2021

感谢你提出的问题,有好的解决方案吗🧐

根据zaiMoe所说的这是yarn的bug,我把lerna.json配置文件里的npmClient配置节改成了“npm”,然后执行npm run bootstrap,虽然速度慢点,但总算是把依赖都安装成功了

然后执行npm run bootstrap 后还是报错 企业微信截图_16328163778987

window10试试用WSL

@x6-bot x6-bot bot added the stale Issue that may be closed soon due to the original author not responding any more. label Jan 30, 2022
@breezefaith
Copy link
Contributor Author

breezefaith commented Jan 30, 2022 via email

@x6-bot x6-bot bot removed the stale Issue that may be closed soon due to the original author not responding any more. label Jan 31, 2022
@x6-bot
Copy link
Contributor

x6-bot bot commented Feb 20, 2022

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the AntV community! 💪💯

@x6-bot x6-bot bot added the stale Issue that may be closed soon due to the original author not responding any more. label Feb 20, 2022
@breezefaith
Copy link
Contributor Author

breezefaith commented Feb 20, 2022 via email

@x6-bot x6-bot bot removed the stale Issue that may be closed soon due to the original author not responding any more. label Feb 21, 2022
@x6-bot x6-bot bot added stale Issue that may be closed soon due to the original author not responding any more. and removed stale Issue that may be closed soon due to the original author not responding any more. labels Mar 13, 2022
@antvis antvis deleted a comment from x6-bot bot Apr 8, 2022
@antvis antvis deleted a comment from breezefaith Apr 8, 2022
@cuidong626
Copy link
Contributor

装了wsl 终于可以了。。。

@zyzweb
Copy link

zyzweb commented May 31, 2022

感谢你提出的问题,有好的解决方案吗🧐

可以把bootstrap改一下:

"bootstrap": "yarn install --ignore-scripts && lerna run preinstall && yarn build:dev"

再把其他命令中的"prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'"中的单引号改成双引号,就能跑通过了,但是由ts编译错误

image

执行yarn build:sites还是有问题

@breezefaith
Copy link
Contributor Author

breezefaith commented May 31, 2022 via email

@Trojanpa
Copy link

你好,我对wsl2不了解,我应该如何使用wsl2解决这个安装报错问题呀?有没有相关步骤教程呢

@breezefaith
Copy link
Contributor Author

breezefaith commented Jun 28, 2022 via email

@Trojanpa
Copy link

装了wsl 终于可以了。。。

兄弟,wsl怎么弄?

@ibertli
Copy link

ibertli commented Jun 29, 2022

兄弟你这个问题是怎么解决的?

@NewByVector NewByVector added v2.0 will fix in v2.0 and removed v2.0 will fix in v2.0 labels Jun 30, 2022
@Skypow2012
Copy link

我是在 X6-master/examples/x6-app-dag 目录运行 yarn 报了这个错,下面这个评论是正解,把 examples 里的文件复制到其他文件夹再 yarn,就没有报错了,亲测能在 Windows 10 跑官方示例了
#38 (comment)

@breezefaith
Copy link
Contributor Author

breezefaith commented Jul 19, 2022 via email

@damnright
Copy link
Contributor

win10使用wsl2 yarn bootstrap成功了 运行时要关闭wsl的proxy,yarn start 要在wsl中运行

@NewByVector
Copy link
Contributor

windows 下有一些兼容问题,推荐使用 wsl 进行安装。

@breezefaith
Copy link
Contributor Author

breezefaith commented Jan 29, 2023 via email

@x6-bot
Copy link
Contributor

x6-bot bot commented Jan 30, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Jan 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug 缺陷 Defects and unexpected behaviors
Projects
None yet
Development

No branches or pull requests