node.js 安装及配置 及其他安装
来源:互联网 发布:京挑客cms系统 编辑:程序博客网 时间:2024/05/18 14:14
安装步骤:
1、下载node.js的安装包,安装包版本号0.10开头(不知道为什么www.nodejs.org下载的安装之后不能用,求解);
2、安装homebrew:在终端输入命令:ruby -e "$(curl -fsSL https://raw.
完成之后,在终端输入:brew install autoconf automake libtool;
3、安装couchdb:在第二步的基础上,在终端输入:brew install couchdb;
下载教程:获取实例代码,在终端输入:git clone https://github.com/indexzero/nodejs-intro.git
紧接着在终端输入:
curl -X PUT http://127.0.0.1:5984/helloworld,会在http://127.0.0.1:5984/utils 创建一个名为“helloworld”的数据库;
开启服务:
./server -t 02couchdb -s;4、通过 npm 命令安装node包
npm install optimist
npm http GET https://registry.npmjs.org/optimist
npm http 200 https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/optimist/-/optimist-0.2.8.tgz
npm http 200 https://registry.npmjs.org/optimist/-/optimist-0.2.8.tgz
npm http GET https://registry.npmjs.org/wordwrap
npm http 200 https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz
npm http 200 https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz
安装其他node包:
5、安装http-console
安装其他node包:
npm install winston
npm install cradle
npm install journey
npm install optimist
5、安装http-console
:
sudo npm install -g http-console6、安装express:sudo npm -install -g express (全局安装)
备注:此时安装之后是不能使用express命令的,因为express 4版本将命令行工具express单独分离出来了,放到express-generator包中,老版本是集成在一起的,需要安装命令行工具才行:sudo npm install -g express-generator ;
之后就可以用express命令创建项目
整理的很乱,凑合着看吧,希望多沟通多指教!
本人小白一枚,刚接触node.js,勿喷
推荐及本文来源:http://www.oschina.net/question/12_47164
推荐及本文来源:http://www.itnose.net/detail/6189789.html
0 0
- node.js 安装及配置 及其他安装
- node.js 安装及配置
- linux node.js安装及配置
- Windows下Node.js 安装及配置
- Node.js安装及环境变量配置
- 安装配置node.js
- Node.js 安装配置
- Node.js 安装配置
- Node.js安装配置
- Node.js 安装配置
- Node.js 安装配置
- Node.js安装配置
- Node.js 安装配置
- Node.js 安装配置
- Node.js 安装配置
- Node.js安装配置
- Node.js 安装配置
- Node.js 安装配置
- 常用知识表示方法
- 微信公众号跳转到关注页面办法
- 设计模式之——Java代理
- sh里的变量 $0 $1 $$ $#
- Python Signal 信号
- node.js 安装及配置 及其他安装
- [深度学习论文笔记][Image Classification] Going Deeper with Convolutions
- 数据库设计简单入门
- Android Studio 引入 android-support-v7-appcompat 包问题
- 华为存储HCIE-Storage认证培训详解
- 学习记录-Qt布局中的Spacer使用
- Oracle分析函数总结(3)- 数值分布 - cume_dist,percent_rank,ntile,percentile_disc,percentile_cont,ratio_to_report
- leetCode练习(43)
- int型整数和BCD码之间的相互转化