как установить библиотеку react-pannellum для реакции/ionic

Мне нужно реализовать 3D-панораму в моем приложении 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.

1 ответ

      npm install --save react-pannellum --force 
Другие вопросы по тегам