我的代码正在从react-bootstrap导入组件
import { FormGroup, ControlLabel } from "react-bootstrap";
我在跑步
npm install react-bootstrap
在出现此错误时为了安装软件包
npm ERR! code E404
npm ERR! 404 Not Found: react-bootstrap-validtion@latest
npm ERR! code ETARGET
npm ERR! notarget No matching version found for react-popper@1.2.1
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
然后我尝试npm install react-popper@1.2.1,但是也太错误了 我该如何解决
答案 0 :(得分:1)
react-popper的版本是1.2.0或1.3.0。 {-{3}}页的react-popper] [1]
没有可用的版本1.2.1。
答案 1 :(得分:0)
您没有尝试安装的react -popper版本1.2.1,请仔细阅读react-popper版本here
有关React Bootstrap安装的信息,请参见React-Bootstrap
如果这些方法不能帮助您解决问题,请告诉我们
答案 2 :(得分:0)
最好同时安装react-bootstrap和bootstrap,如果尝试使用此代码在react-bootstrap上安装bootstrap,则应该避免错误
npm install bootstrap react-bootstrap