-
Notifications
You must be signed in to change notification settings - Fork 552
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
yarn install, init 失败 #2841
Comments
+1 |
遇到同样的问题 |
请问 这个错误,咋解决呀 lerna ERR! yarn run build exited 2 in '@arco-design/arco-vue-scripts' |
同样遇到了,该怎么解决啊 |
我按照上面的方法解决了,我记得是 |
我还是无法解决,我只是想编译一份离线文档,在内网开发使用,可否帮助我编译一份 |
现在我也跑不起来…… |
1. 开发环境准备 lerna 多包管理 和 yarn 包管理器(已有跳过此步) 检查是否安装: lerna -v
yarn -v 如未安装使用以下命令安装: npm install -g lerna npm install -g yarn 2. 安装各个工作区的包依赖 yarn install
3. 初始化项目
npm run init 用 |
现在呢? |
We need pnpm! |
yarn set version 3.1.0 |
@oljc |
基本信息
预期结果
正常 install, init, build
复现步骤
本机 yarn 1.22.21, node 20.6.1
clone 之后
yarn install 报了很多错,类似
发现用的是 yarn 版本是3.0.2, yarnrc 里 yarnPath 指定的是个本地地址 .yarn/releases/yarn-berry.cjs 而这又和 package.json 里 devDependencies 里的 "yarn": "^1.22.10" 又不一样。
根据 #47 尝试删除 yarn.lock 之后 install 问题依旧
继续尝试删除 yarnPath: .yarn/releases/yarn-berry.cjs 使用本地 yarn install 安装正常了。
然后 yarn run init 失败,报错如下
很困惑了
The text was updated successfully, but these errors were encountered: