Nothing to stop. No server is running for the store at /Users/pan/Library/pnpm/store/v3
ERR_PNPM_REGISTRIES_MISMATCH This modules directory was created using the following registries configuration: {"default":"https://registry.npmmirror.com/"}. The current configuration is {"default":"http://192.168.2.10:4873/"}. To recreate the modules directory using the new settings, run "pnpm install".
这个错误意味着你的PNPM配置文件中的仓库地址与之前不一致,无法找到之前已安装的依赖项。解决方法是重新安装依赖项。
首先,可以尝试在终端中运行以下命令:
pnpm install
如果这不起作用,可以尝试删除PNPM存储库中的所有内容,并重新安装所有依赖项。要删除存储库,请运行以下命令:
rm -rf ~/Library/pnpm-store/*
然后运行以下命令重新安装依赖项:
pnpm install
这将重新创建PNPM存储库并安装所有依赖项。如果你之前安装了全局PNPM包,请使用以下命令重新安装它:
pnpm install -g pnpm