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

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

相关推荐
RFCEO5 小时前
前端编程 课程十三、:CSS核心基础1:CSS选择器
前端·css·css基础选择器详细教程·css类选择器使用方法·css类选择器命名规范·css后代选择器·精准选中嵌套元素
Amumu121386 小时前
Vuex介绍
前端·javascript·vue.js
We་ct6 小时前
LeetCode 54. 螺旋矩阵:两种解法吃透顺时针遍历逻辑
前端·算法·leetcode·矩阵·typescript
2601_949480066 小时前
【无标题】
开发语言·前端·javascript
css趣多多6 小时前
Vue过滤器
前端·javascript·vue.js
孪生质数-7 小时前
Windows安装OpenClaw(Clawdbot)教程
ai·npm·skill·minimax·clawdbot·openclaw
理人综艺好会7 小时前
Web学习之用户认证
前端·学习
We་ct7 小时前
LeetCode 36. 有效的数独:Set实现哈希表最优解
前端·算法·leetcode·typescript·散列表
weixin_395448917 小时前
main.c_cursor_0129
前端·网络·算法
2401_859049088 小时前
git submodule update --init --recursive无法拉取解决
前端·chrome·git