简体   繁体   English

如何使用 pnpm 安装 react-boostrap

[英]how to install react-boostrap using pnpm

The project I am working on currently uses pnpm as the package manager, I tried to install the react-boostrap library package in the project (pnpm i react-bootstrap) but this did not work.我正在从事的项目目前使用 pnpm 作为 package 管理器,我尝试在项目中安装 react-boostrap 库 package (pnpm i react-bootstrap),但这没有用。 I also checked the node_module folder and there is a file of react-boostrap but it is not working.我还检查了 node_module 文件夹,有一个 react-boostrap 文件,但它不起作用。

i already search on inte.net but didn't get proper solution, so i tried this command pnpm i react-boostrap but didn't work.我已经在 inte.net 上搜索但没有找到合适的解决方案,所以我尝试了这个命令pnpm i react-boostrap但没有用。 remember i am using vite as front end tool.记得我使用 vite 作为前端工具。 pnpm 7.17.1 react 8.15.0 vite 8.15.0 pnpm 7.17.1 反应 8.15.0 vite 8.15.0

You probably forgot to include css. You have to do it manually:您可能忘记包含 css。您必须手动完成:

https://react-bootstrap.github.io/getting-started/introduction#stylesheets https://react-bootstrap.github.io/getting-started/introduction#stylesheets

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

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