一、先看报错
执行 pnpm install 装包报错

报错信息
ERR_PNPM_PUBLIC_HOIST_PATTERN_DIFF This modules directory was created using a different public-hoist-pattern value. Run "pnpm install" to recreate the modules directory.
二、解决方法
-
在项目根目录中,删除 node_modules 目录
-
打开终端,并确保你在项目根目录下
-
重新安装依赖

所有评论(0)