Yeoman+Express+Angular在Linux上开发配置方法
2013-08-17 23:57 NicolasZhang 阅读(471) 评论(0) 编辑 收藏 举报- $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:
app.use(express.static(path.join(__dirname,'public')));
to this:
app.use(express.static(path.join(__dirname, 'app')));
- $npm install
- $node app