我尝试使用npm(“npm install bootstrap”)安装引导程序,但无法在我的网页中使用引导程序。但是我们不能只在我的HTML文件中使用引导CDN吗?无法使用npm install bootstrap安装引导程序
0
A
回答
0
如果NPM为您的服务器添加引导程序,您仍然需要在您正在服务的网页中引用它。
很可能是将文件放在像
stylesheets/bootstrap.css
网页的服务内(玉/ HTML),你仍然需要在
<link rel="stylesheet" type="text/css" href="/stylesheets/bootstrap.min.css">
记下HREF点。如果你已经有了这个,你可能会指向错误的目录。
也不错,你可以使用复制/粘贴从CDN如: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css
编辑: 引导也包含JavaScript文件,你还需要使用, 这可能是类似的地方
javascripts/bootstrap.js
或再次,你可以使用复制/粘贴从CDN: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js
+0
如果不知道你的问题究竟是什么,我不能提供更多的细节,我主要是在黑暗中拍摄。首先回答Luzan Baral的问题。当您使用NPM安装引导程序时是否出现错误?如果您打算自行提供引导文件,也可以复制粘贴网页代码的内容,并可能显示您的服务器文件目录的外观。 – Spencel
相关问题
- 1. npm install xml2json无法安装
- 2. 使用npm安装引导程序失败
- 3. 无法使用npm install安装软件包,EPERM错误
- 4. 无法使用'npm install -g appium'命令安装appium
- 5. 使用npm install安装glup时出错
- 6. 使用npm install安装OpenLayer。蟒蛇
- 7. 无法使用npm安装webpack
- 8. 无法使用WiX引导程序安装软件包
- 9. 无法使用NPM安装TypeScript
- 10. 无法使用“npm install -g cordova”
- 11. 无法使用npm安装grunt-contrib-testem
- 12. 无法使用卷曲安装NPM
- 13. npm安装与npm install相同--save?
- 14. npm install bootstrap-material-datepicker
- 15. 无法“npm install aws-lib”
- 16. 无法安装npm-deployer-git
- 17. 无法安装使用NPM安装-g反应母语-CLI
- 18. Docker无法安装npm包
- 19. npm install - ERR! addLocal无法在Windows 10上安装
- 20. Ubuntu无法安装npm
- 21. 无法安装history.js使用npm
- 22. 使用npm无法安装离子
- 23. 无法安装使用waterline_sqlite3 NPM
- 24. 无法安装* sequelize *使用npm
- 25. npm安装无法执行exec安装后脚本bower安装
- 26. 无法为angular2项目执行npm install
- 27. 无法安装的NPM包
- 28. npm安装无ssl
- 29. 无法使用NPM
- 30. 安装程序是'$ npm install blabla'的安装插件的方式/位置?
'npm install bootstrap'时会出现什么错误,您也可以使用CDN。 –