Ubuntu 14.04 安装node js
来源:互联网 发布:怎样淘宝上降价买东西 编辑:程序博客网 时间:2024/05/22 05:19
如果用apt-get来安装,nodejs的版本很低0.10.37
。
使用Ubuntu推荐的安装方式:
https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
1 安装Nodejs 4.x版本. (curl前面是否加sudo和系统用户的配置有关,如果不加也能运行,就不用加sudo)
$sudo curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -$sudo apt-get install -y nodejs
check
$ nodejs -vv4.4.0$ npm -v2.14.20
2 有些库还需要安装编译环境
To compile and install native addons from npm you may also need to install build tools:
sudo apt-get install -y build-essential
check
$ g++ --versiong++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4Copyright (C) 2013 Free Software Foundation, Inc.
3 安装SSE的包
$ npm install express consolidate handlebars caesar$ sudo npm install -g coffee-script
check
$ coffee -c ./searchable.coffee能够得到编译后的js文件
如何运行我还不清楚?
0 0
- Ubuntu 14.04 安装node js
- Ubuntu安装Node.js
- ubuntu安装node.js
- ubuntu 安装 node.js
- Ubuntu 安装Node.js
- Node.js:ubuntu安装Node.js
- ubuntu 12.04 安装 node.js
- Ubuntu 编译安装node.js
- ubuntu下安装Node.js
- ubuntu下安装node.js
- ubuntu 下 安装 node.js
- 在ubuntu 安装node.js
- Ubuntu上安装Node.js
- Ubuntu下Node.Js安装
- Ubuntu编译安装Node.js
- Ubuntu 上安装 Node.js
- Ubuntu 上安装 Node.js
- Ubuntu,源码安装Node.js
- python中的print
- 清华梦的粉碎—写给清华大学的退学申请【转自王垠博客】
- 谈 Linux,Windows 和 Mac【转自王垠博客】
- 什么是“对用户友好”【转自王垠博客】
- Xcode7禁用了明码的HTTP请求
- Ubuntu 14.04 安装node js
- Java技术路线
- PDE3&4 Transport equation: derivation & general solution
- PDE5 method of characteristics
- HTML5混合框架
- ScrollView和WebView 嵌套,底部出现大块空白的问题
- Python异常模块traceback用法举例
- 【CodeForces】[630A]Again Twenty Five!
- Bzoj4403序列统计:Lucas初探,组合数学