pnpm报错如Runing this command will add the dependency to the workspace root所示

Running this command will add the dependency to the workspace root, which might not be what you want - if you really meant it, make it explicit by running this command again with the -w flag (or --workspace-root). If you don't want to see this warning anymore, you may set the ignore-workspace-root-check setting to true.
报错触发场景:当在采用pnpm搭建的menorepo项目根目录下执行pnpm dlx @eslint/create-config后会报错,原因是在根目录下安装依赖是不被允许,解决办法如下:

复制代码
pnpm config set ignore-workspace-root-check true

之后再在根目录下面安装依赖就不会报错了。

相关推荐
A小码哥12 分钟前
大模型成本怎么降,5 个动作先做前两个
java·前端·spring
PHP是世界上最好的语言25 分钟前
ComPDF预览本地正常,部署后白屏:检查资源、路径和许可
前端
kiros_wang26 分钟前
项目分包方案:模块拆分、跨模块组件与方法引用规范
前端
PedroQue9928 分钟前
unix-utils v0.2.0 发布:modal 全端统一,自绘窗口解决输入框难题
前端·uni-app
Csvn29 分钟前
网络优化
前端
代码猎人32 分钟前
前端怎么跟进生态新技术
前端
海阳皓辰网络科技有限公司32 分钟前
Vue3 冷库货位选择器:三级联动、扫码带出与批次混放校验
前端·vue.js
__sjfzllv___35 分钟前
在职前端Leader学习/转行 AI Agent -DAY81
前端
女生也可以敲代码36 分钟前
div上有红色下划线报错:JSX 元素隐式具有类型 “any“,因为不存在接口 “JSX.IntrinsicElements“。ts(7026)
前端
申君健248641827720238 分钟前
ArkTS 速成指南(写给有 TypeScript / 前端经验的开发者)
前端