简体   繁体   English

如何安装 react-pannellum 库以进行反应/离子

[英]how to install react-pannellum library to react/ionic

I need to implement 3d panorama view in my react ionic app but its having an error when I install using npm install --save react-pannellum and also npm install --save pannellum but I'm having error in installing process我需要在我的反应离子应用程序中实现 3d 全景视图,但是当我使用npm install --save react-pannellumnpm install --save pannellum出现错误但在安装过程中出现错误 pannellum --save'm

npm WARN config global --global , --local are deprecated. npm WARN config global --global--local已弃用。 Use --location=global instead.请改用--location=global

npm ERR! npm 错误! code ERESOLVE代码 ERESOLVE

npm ERR! npm 错误! ERESOLVE unable to resolve dependency tree ERESOLVE 无法解析依赖树

npm ERR: While resolving. npm ERR:正在解决。 test-pannelum@0.1.0测试面板@0.1.0

npm ERR: Found. npm ERR:找到。 react@18.2.0反应@18.2.0

npm ERR! npm 错误! node_modules/react节点模块/反应

npm ERR. npm 错误。 react@"^18.2.0" from the root project根项目中的 react@"^18.2.0"

npm ERR: Could not resolve dependency: npm ERR:无法解析依赖:

npm ERR. npm 错误。 peer react@"17.0.2" from react-pannellum@0.2.13来自 react-pannellum@0.2.13 的对等 react@"17.0.2"

npm ERR! npm 错误! node_modules/react-pannellum node_modules/react-pannellum

npm ERR! npm 错误! react-pannellum@"*" from the root project根项目中的 react-pannellum@"*"

npm ERR, Fix the upstream dependency conflict, or retry npm ERR,修复上游依赖冲突,或者重试

npm ERR, this command with --force, or --legacy-peer-deps npm ERR,此命令带有--force,或--legacy-peer-deps

npm ERR. npm 错误。 to accept an incorrect (and potentially broken) dependency resolution.接受不正确的(并且可能被破坏的)依赖解决方案。

npm install --save react-pannellum --force npm install --save react-pannellum --force

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM