zoukankan      html  css  js  c++  java
  • flask-bootstrap

    pip install bootstarp

    使用bower安装bootstrap的命令是:

    bash$ bower install bootstrap
    不过问题出在如何安装bower上。

    官方网站上这样说的:

    Bower depends on Node and npm. It's installed globally using npm:

    npm install -g bower
    Also make sure that git is installed as some bower packages require it to be fetched and installed.
    问题又来了,node与npm,使用ubuntu的apt-get结果装了node就没有npm,装了npm就没有node。
    最后这样解决的:
    装npm,sudo apt-get install npm
    然后用npm安装node,但是bower还是没法装,于是更新node版本。
    步骤如下:

    sudo npm cache clean -f
    sudo npm install -g n
    sudo n stable
    还可以参考这篇文章,点击打开链接,之后依次安装即可。

    总结一下就是,先安装npm,用源安装,然后用npm安装node,并对其进行更新。
    之后用npm安装bower,
    最后bower安装bootstrap

  • 相关阅读:
    DispatcherServlet
    上转型对象
    Javascript闭包(Closure)
    跨域
    dict
    Python 函数参数传递方式
    协同过滤
    白话 动态规划 第一节 初识动态规划
    Spring@Autowired注解与自动装配
    protected
  • 原文地址:https://www.cnblogs.com/but009/p/5725174.html
Copyright © 2011-2022 走看看