Yeoman+Express+Angular在Linux上开发配置方法
2013-08-17 23:57
369 查看
$mkdir ExpressWithAngularTest
$cd ExpressWithAngularTest
choose needed components you'd like to add to your project
$mv package.json package_yo.json
$express
$gedit package.json
copy "express": "3.3.4","jade": "*" from the dependencies
$gedit package_yo.json
add a coma after the grunt-karma line in dependencies
paste and save
$rm app.js~ package.json package.json~
$mv package_yo.json package.json
$rm -rf public
$gedit app.js
Change this line:
to this:
$npm install
$node app
$cd ExpressWithAngularTest
choose needed components you'd like to add to your project
$mv package.json package_yo.json
$express
$gedit package.json
copy "express": "3.3.4","jade": "*" from the dependencies
$gedit package_yo.json
add a coma after the grunt-karma line in dependencies
paste and save
$rm app.js~ package.json package.json~
$mv package_yo.json package.json
$rm -rf public
$gedit app.js
Change this line:
app.use(express.static(path.join(__dirname,'public')));
to this:
app.use(express.static(path.join(__dirname, 'app')));
$npm install
$node app
相关文章推荐
- Linux环境下Eclipse + Tomcat + MySQL 配置J2EE开发环境的方法
- VirtualBox下安装已经配置好Linux驱动开发环境的Ubuntu系统的方法
- jsp教程Linux下配置JSP开发环境的方法
- Linux环境下Eclipse + Tomcat + MySQL 配置J2EE开发环境的方法
- Linux下配置JSP开发环境的方法
- Debian(Linux)+XAMPP(LAMPP)+Zend Studio + PHP +XDebug 完整的开发环境配置方法。
- Debian(Linux)+XAMPP(LAMPP)+Zend Studio + PHP +XDebug 完整的开发环境配置方法。 转摘:http://www.cnblogs.com/kungfupanda/archive/2010/11/25/1887812.html
- [Java EE] LInux环境下Eclipse + Tomcat + MySQL 配置J2EE开发环境的方法
- Ubuntu(Linux)+XAMPP(LAMPP)+eclipse+PHP+XDebug 完整的开发环境配置方法
- Ubuntu(Linux)+XAMPP(LAMPP)+eclipse+PHP+XDebug 完整的开发环境配置方法 -
- Linux网络基本网络配置方法介绍
- PHP开发环境正确的配置方法
- vue webpack开发访问后台接口全局配置的方法
- Linux配置全局环境变量的方法
- Oracle数据库开发(二) Linux下配置使用ProC
- [转]正确配置Linux系统ulimit值的方法
- Windows下Android开发环境配置的一种方法
- Linux中 JDK的配置方法
- Linux配置防火墙添加端口(Ubuntu/Debian无法使用此方法)
- Linux下 无线网卡配置无线唤醒功能的方法