zoukankan      html  css  js  c++  java
  • ubuntu kylin 14.04安装Node.js和Famous

    默认使用软件中心安装node.js,然后参考https://famo.us/install进行安装

    1.sudo apt-get install git

    2.npm install -g yo grunt-cli bower generator-famous 执行后结果报如下错误 使用npm WARN This failure might be due to the use of legacy binary "node"

    经过搜索采取如下方式安装最新node.js

    ----------------------------------------------------------------------------------------------------------------

    1.确定/etc/apt/sources.list中存在如下源信息

    # in /etc/apt/sources.list

    deb http://archive.ubuntu.com/ubuntu quantal main restricted universe

    deb http://security.ubuntu.com/ubuntu quantal-security main restricted universe

    deb http://archive.ubuntu.com/ubuntu quantal-updates main restricted universe

    2.执行如下操作安装node.js

    sudo apt-get install python-software-properties

    sudo add-apt-repository ppa:chris-lea/node.js

    sudo apt-get update sudo apt-get install nodejs

    3.执行如下操作安装npm

    sudo apt-get install npm

    ----------------------------------------------------------------------------------------------------------

    3.mkdir newProject && cd newProject

    4.yo famous

    5.grunt serve

    参考链接:

    http://slopjong.de/2012/10/31/how-to-install-the-latest-nodejs-in-ubuntu/

  • 相关阅读:
    matlab 工具箱下载地址
    P3022 [USACO11OPEN]Odd degrees G
    P1052 过河 【dp】
    P1156 垃圾陷阱
    P1063 能量项链 【区间dp】
    P1026 统计单词个数 【dp】
    P1541 乌龟棋【记忆化搜索】
    P1736 创意吃鱼法 【dp】
    单调队列优化多重背包 洛谷P1776 宝物筛选
    单调队列 洛谷P1886 滑动窗口
  • 原文地址:https://www.cnblogs.com/wihi/p/3717813.html
Copyright © 2011-2022 走看看