Javascript 无法在React js项目中安装打字机软件包

Javascript 无法在React js项目中安装打字机软件包,javascript,reactjs,Javascript,Reactjs,您必须重新启动终端才能继续安装,否则将出现错误。。。 我今天早上遇到了这个错误。。。因此,展望未来,您也可以解决此问题,只需添加flag-force,然后运行。打字机效果只是使用了旧版本的react。不要担心版本冲突,只要运行就可以了,对我来说,它运行起来没有任何问题。输出中有什么不清楚的地方?打字机效果不支持React 17。 npm i typewriter-effect npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve d

您必须重新启动终端才能继续安装,否则将出现错误。。。
我今天早上遇到了这个错误。。。因此,展望未来,您也可以解决此问题,只需添加flag-force,然后运行。打字机效果只是使用了旧版本的react。不要担心版本冲突,只要运行就可以了,对我来说,它运行起来没有任何问题。

输出中有什么不清楚的地方?打字机效果不支持React 17。
npm i typewriter-effect
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: typetest@0.1.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"^17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"16.x" from typewriter-effect@2.17.0
npm ERR! node_modules/typewriter-effect
npm ERR!   typewriter-effect@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\USER\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\USER\AppData\Local\npm-cache\_logs\2021-05-03T18_40_11_049Z-debug.log