【问题标题】:how to install react-pannellum library to react/ionic如何安装 react-pannellum 库以进行反应/离子
【发布时间】:2022-11-12 04:19:42
【问题描述】:

我需要在我的反应离子应用程序中实现 3d 全景视图,但是当我尝试使用以下任一方式安装时出现错误:

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.

【问题讨论】:

    标签: javascript reactjs npm ionic-framework pannellum


    【解决方案1】:
    npm install --save react-pannellum --force 
    

    【讨论】:

    • 请不要破坏您的帖子。通过在 Stack Exchange 网络上发帖,您已在 CC BY-SA 4.0 license 下授予 Stack Exchange 分发该内容的不可撤销的权利(即无论您未来的选择如何)。根据 Stack Exchange 政策,帖子的非破坏版本是分发的版本,因此,任何破坏行为都将被撤销。如果您想了解有关删除帖子的更多信息,请参阅:How does deleting work?。您也可以自己删除帖子。
    猜你喜欢
    • 1970-01-01
    • 2020-05-15
    • 1970-01-01
    • 2017-08-13
    • 1970-01-01
    • 1970-01-01
    • 2011-02-15
    • 1970-01-01
    • 2020-12-12
    相关资源
    最近更新 更多