twitter-bootstrap 安装 Bootstrap 4 时使用 npm 解决依赖关系
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45946399/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Resolving dependencies using npm while installing Bootstrap 4
提问by Nangialai Stoman
While installing Bootstrap 4 using npmit show me these errors:
使用npm它安装 Bootstrap 4时向我显示这些错误:
npm WARN [email protected] requires a peer of jquery@>=3.0.0 but none was installed.
npm WARN [email protected] requires a peer of popper.js@^1.11.0 but none was installed.
I'm using Git Bash, I also tried to install jQuery individually but it couldn't installed. Could you please help me to fix these issues?
我正在使用 Git Bash,我也尝试单独安装 jQuery,但无法安装。你能帮我解决这些问题吗?
回答by locrizak
You'll need to install those dependencies and save them to you package.json
您需要安装这些依赖项并将它们保存给您 package.json
npm install [email protected] --save
npm install [email protected] --save
npm install [email protected] --save
npm install [email protected] --save
The docsfor npm install
该文档为npm install
回答by shrikant joshi
just try this as well:
也试试这个:
npm install --save @ng-bootstrap/ng-bootstrap
npm install --save @ng-bootstrap/ng-bootstrap

