2011-12-14 56 views
0

我正在尝试整合脊骨与主宰。首先,我尝试克隆fowa分支(https://github.com/maccman/spine.rails3/tree/fowa),但我无法克隆该分支,所以我正在通过maccman/spine.rails3自己做应用程序,而不是推杆我使用剑圣。对于重型卡车我跟着maccman /重型卡车(https://github.com/maccman/juggernaut/tree/)整合脊柱与主宰

我通过

sudo apt-get install redis-server 

安装redis的服务器已经我安装NPM

[email protected]:~$ npm -v 
1.0.106 

对于

npm install -g juggernaut 

npm ERR! Could not create /usr/local/lib/node_modules/___juggernaut.npm 
npm ERR! error installing [email protected] Error: EACCES, Permission denied '/usr/local/lib/node_modules/___juggernaut.npm' 
npm ERR! Error: EACCES, Permission denied '/usr/local/lib/node_modules/___juggernaut.npm' 
npm ERR! Report this *entire* log at: 
npm ERR!  <http://github.com/isaacs/npm/issues> 
npm ERR! or email it to: 
npm ERR!  <[email protected]> 
npm ERR! 
npm ERR! System Linux 2.6.32-21-generic 
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "juggernaut" 
npm ERR! cwd /home/spritle 
npm ERR! node -v v0.5.5-pre 
npm ERR! npm -v 1.0.106 
npm ERR! path /usr/local/lib/node_modules/___juggernaut.npm 
npm ERR! code EACCES 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /home/spritle/npm-debug.log 
npm not ok 

我收到此错误

所以我做

npm install juggernaut 
For this I am getting 

[email protected] ./node_modules/juggernaut 
├── [email protected] 
├── [email protected] 
├── [email protected] ([email protected]) 
└── [email protected] 

之后,我做了

gem install juggernaut 

对于

[email protected]:~$ sudo /etc/init.d/redis-server start 

我越来越

Starting redis-server: redis-server. 

对于

[email protected]:~$ juggernaut 

我越来越

juggernaut: command not found 

所以对于http://localhost:8080 我越来越

Unable to connect error 

我安装Redis的剑圣。当我运行localhost:8080时出现错误。 我不知道我做错了什么。任何人都可以帮助我。

回答

1

我是个笨蛋,我想在我安装的地方启动juggernaut服务器。而不是我在其他地方启动setver。现在我可以连接到剑圣。我可以访问http://localhost:8080。现在我开始使用juggernaut:

spritle @ ubuntu:/ usr/local/lib/node_modules/juggernaut $ juggernaut server.js