首页 > 代码库 > jsgen 搭建

jsgen 搭建

1,mongodb

2,redis 

http://www.cnblogs.com/lxx/archive/2013/06/04/3116985.html

3,npm install

最好在vs command 里运行

http://stackoverflow.com/questions/18774929/npm-install-g-karma-error-msb4019-the-imported-project-c-microsoft-cpp-defau

4,无法删除 The file name(s) would be too long for the destination folder

http://answers.microsoft.com/en-us/windows/forum/windows_7-files/error-message-the-file-names-would-be-too-long-for/067ac100-b82a-4754-9fb5-9dd50aed8b90

4,check config file error: TypeError: Object #<Object> has no method ‘upyun‘ ,

node app.js install

5,必须的步骤

npm install node-gyp    //windows需要先运行此命令,linux不需要                        //此命令依赖python和vs2012,请参考 https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setupnpm install             //npm安装依赖模块,请确保依赖模块全部安装好。                        //windows下请运行 npm install --msvs_version=2012node app.js install     //启动jsGen之前,初始化MongoDB数据库node app.js [recache]   //正式启动,可选参数 `recache`,启动时重建redis缓存npm start               //正常启动,或 `node app.js`

jsgen 搭建