-
Notifications
You must be signed in to change notification settings - Fork 7
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
use yarn instead of npm #7
Conversation
经过调查, 现在的 registry=https://registry.npmmirror.com/ # 设置镜像
prefix=${HOME}/../node # 设置 Global 文件夹
cache=${HOME}/../tmp/npm-cache # 设置 Cache
tmp=${HOME}/../tmp # 设置临时文件夹 后三条配置均为了避免泄漏而设计。 |
yarn v1 can also set them by yarn config set prefix <global-folder>
yarn config set cache-folder <cache-folder> to achieve this. Although I have no idea what is tmp and how is it working. And if using yarn berry (v2 / v3), packages would be installed in |
经过验证,
回滚到 最后,查看 鉴于上述原因,现判定 此 PR 保留几天后关闭。有其他建议可随时提出。 |
需注意「包管理器支持 Global 环境」并非 Koi 的必需功能,现阶段也无任何需求使用到了该功能。现阶段 |
yarn2 可以通过 |
yarn2 默认会将缓存存储于 |
if you want to use yarn 2 (in fact current version is already 3), then I think it is better to "bundle" the yarn itself and its plugins in the shipped release, instead of installing it at the runtime. yarn will install the latest berry version from GitHub, which is not much stable that every user could connect. |
Agreed. EDIT: But looks like yarn berry works well in this case. |
Works on Linux. Windows and MacOS not tested. |
As koishijs/koishi#633 merged, it should be allowed to use yarn berry to perform create / install completely. |
已在 84b6c5c 使用 |
No description provided.