我正在尝试学习react/typescript,并且正在按照教程线进行操作,但在尝试安装@chakra-ui/react 或@chakra-ui/core 时不知何故出现此错误。这似乎是反应已更新的依赖问题。我应该回滚反应吗?
\nkyoudai.industries git:(master) \xe2\x9c\x97 npm install @chakra-ui/react framer-motion\nnpm ERR! code ERESOLVE\nnpm ERR! ERESOLVE unable to resolve dependency tree\nnpm ERR! \nnpm ERR! While resolving: kyoudai.industries@1.0.0\nnpm ERR! Found: react@17.0.1\nnpm ERR! node_modules/react\nnpm ERR! react@"^17.0.1" from the root project\nnpm ERR! peer react@"16.x || 17.x" from @chakra-ui/react@1.0.1\nnpm ERR! node_modules/@chakra-ui/react\nnpm ERR! @chakra-ui/react@"*" from the root project\nnpm ERR! 2 more (@emotion/react, @emotion/styled)\nnpm ERR! \nnpm ERR! Could not resolve dependency:\nnpm ERR! peer react@"^16.8" from framer-motion@2.9.4\nnpm ERR! node_modules/framer-motion\nnpm ERR! framer-motion@"*" from the root project\nnpm ERR! peer …Run Code Online (Sandbox Code Playgroud)