1. 解释 err_pnpm_adding_to_root 警告信息的含义 当你使用 pnpm(一个快速的、节省磁盘空间的包管理工具)在没有明确指定的情况下尝试向一个包含工作区(workspace)的项目中添加依赖时,pnpm 会显示 err_pnpm_adding_to_root 警告信息。这个警告的目的是提醒你,你正在尝试将依赖项添加到工作区的根目录,这可能不是...
ERR_PNPM_ADDING_TO_ROOT Running thiscommandwill add the dependency to the workspace root, which might not be what you want -ifyou really meant it, make it explicit by running thiscommandagain with the -w flag (or --workspace-root). If you don't want to see this warning anymore...