如何将react-pannellum库安装到react/ionic



我需要在我的react ionic应用程序中实现三维全景视图,但当我尝试使用以下任一项进行安装时,我遇到了一个错误:

npm install --save react-pannellum

npm install --save pannellum

> npm WARN config global `--global`, `--local` are deprecated. Use
> `--location=global` instead.
> 
> npm ERR! code ERESOLVE
> 
> npm ERR! ERESOLVE unable to resolve dependency tree
> 
> npm ERR! While resolving: test-pannelum@0.1.0
> 
> npm ERR! Found: react@18.2.0
> 
> npm ERR! node_modules/react
> 
> npm ERR!   react@"^18.2.0" from the root project
> 
> 
> npm ERR! Could not resolve dependency:
> 
> npm ERR! peer react@"17.0.2" from react-pannellum@0.2.13
> 
> npm ERR! node_modules/react-pannellum
> 
> npm ERR!   react-pannellum@"*" from the root project
> 
> 
> 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 install --save react-pannellum --force 

最新更新