#安装##安装基本的apt-get updateapt-get install git curl language-pack-zh-hans##安装全局的一般安装全局的,默认会安装到home目录的.n
#安装
##安装基本的
apt-get updateapt-get install git curl language-pack-zh-hans
##安装全局的
一般安装全局的,默认会安装到home目录的.npm或者.nvm里
###安装nvm
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bashsource .bashrc
###安装node
// 切换一下安装源export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node//安装最新版本的node,6.2nvm install node//指定node版本为5.8nvm install 5.8#npm自动补全npm completion >> ~/.bashrc
###安装gulp
参考
npm install --global gulp --registry=https://registry.npm.taobao.org
###安装meteor
curl https://install.meteor.com/ | sh
###安装webpack
npm install webpack -g --registry=https://registry.npm.taobao.org
##在项目里安装
到项目目录,先使用命令npm init
来初始化
###安装gulp
参考
// 在项目中也要安装一次,作为项目的开发依赖(devDependencies)安装npm install --save-dev gulp --registry=https://registry.npm.taobao.org
###安装gulp插件
// 用来处理sass文件npm install --save-dev gulp-sass --registry=https://registry.npm.taobao.org// 用来处理各浏览器兼容npm install --save-dev gulp-autoprefixer --registry=https://registry.npm.taobao.org
###安装express
npm install --save express --registry=https://registry.npm.taobao.org// 简易生成器,安装完可以用express hello来生成hello项目npm install -g express-generator
###安装webpack
npm install webpack jsx-loader --save --registry=https://registry.npm.taobao.or
#安装示例
meteor create --listmeteor create --example simple-todosgit clone https://github.com/meteor/simple-todos
#参考
https://github.com/creationix/nvm