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

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

相关推荐
90后的晨仔1 分钟前
RxSwift 中的 DisposeBag解析
前端·ios
蓝胖子的多啦A梦37 分钟前
搭建前端项目 Vue+element UI引入 步骤 (超详细)
前端·vue.js·ui
TE-茶叶蛋39 分钟前
WebSocket 前端断连原因与检测方法
前端·websocket·网络协议
骆驼Lara1 小时前
前端跨域解决方案(1):什么是跨域?
前端·javascript
离岸听风1 小时前
学生端前端用户操作手册
前端
onebyte8bits1 小时前
CSS Houdini 解锁前端动画的下一个时代!
前端·javascript·css·html·houdini
yxc_inspire1 小时前
基于Qt的app开发第十四天
前端·c++·qt·app·面向对象·qss
一_个前端1 小时前
Konva 获取鼠标在画布中的位置通用方法
前端
[email protected]2 小时前
Asp.Net Core SignalR导入数据
前端·后端·asp.net·.netcore
小满zs7 小时前
Zustand 第五章(订阅)
前端·react.js