使用pnpm dlx和为 create-react 应用程序(版本 5.0.0)安装依赖项时pnpm import,我收到一条警告,提示应安装对等依赖项。React 的开发环境运行得很好。使用时不会出现此警告消息npx。除了安装对等依赖项之外,如何修复此警告消息?提前致谢。
我做了什么:
\npnpm dlx create-react-app ./temp-app\nRun Code Online (Sandbox Code Playgroud)\npnpm import package-lock.json\nRun Code Online (Sandbox Code Playgroud)\n\xe2\x80\x89WARN\xe2\x80\x89 Issues with peer dependencies found\n.\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\xac @testing-library/user-event\n\xe2\x94\x82 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 \xe2\x9c\x95 missing peer @testing-library/dom@>=7.21.4\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\xac react-scripts\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 \xe2\x9c\x95 missing peer typescript@"^3.2.1 || ^4"\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\xac eslint-config-react-app\n \xe2\x94\x82 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\xac @typescript-eslint/eslint-plugin\n \xe2\x94\x82 \xe2\x94\x82 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 \xe2\x9c\x95 missing peer typescript@"*"\n …Run Code Online (Sandbox Code Playgroud)