IonicaBizau/github-contributions

package dependences

clarkzjw opened this issue · 10 comments

It seems that it requires at least these four packages: colors & underscore & statique & socket.io. We should use sudo npm install to install the above packages.

Perhaps you can make it clear all the dependences it needs in README.md so that we can download and install all the dependences before we install your packages. That would be better.

Dependencies are listed in dependencies field from package.json file and root access is not needed to install them.

By running wget -qO- https://raw.github.com/IonicaBizau/github-contributions/master/installer.sh | sh the application is downloaded and installed (git clone, npm install etc) in the home directory (~/github-contributions).

So, you shouldn't install deps manually.

Or did I miss anything?

I followed your README.md. The steps are:

And then it reports that I missed the packages......after I manually installed the missing packages(using "npm install statique", etc), and then it works. Did I miss anything?

Can you please delete ~/github-contributions folder and run wget command? Please post output here.

Note that I already use sudo, but I still get Please try running this command again as root/Administrator.. The details are listed as follows.

Welcome to Github contributions!
Making github-contributions directory in ~/
... entering ~/github-contributions
... downloading
--2014-07-30 15:01:15--  https://github.com/IonicaBizau/github-contributions/archive/master.zip
正在解析主机 github.com (github.com)... 192.30.252.128
正在连接 github.com (github.com)|192.30.252.128|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Found
位置:https://codeload.github.com/IonicaBizau/github-contributions/zip/master [跟随至新的 URL]
--2014-07-30 15:01:16--  https://codeload.github.com/IonicaBizau/github-contributions/zip/master
正在解析主机 codeload.github.com (codeload.github.com)... 192.30.252.145
正在连接 codeload.github.com (codeload.github.com)|192.30.252.145|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 171027 (167K) [application/zip]
正在保存至: “master.zip”

100%[======================================>] 171,027      107KB/s   用时 1.6s 

2014-07-30 15:01:19 (107 KB/s) - 已保存 “master.zip” [171027/171027])

... unzipping
Archive:  master.zip
0b592996ef2231d1442300c8b920d0e1df6adb63
   creating: github-contributions-master/
 extracting: github-contributions-master/.gitignore  
  (............................)
  inflating: github-contributions-master/samples/happy-2014.json  
  inflating: github-contributions-master/server.js  
npm ERR! Error: EACCES, open '/home/jinwei/.npm/underscore/1.6.0/package/package.json'
npm ERR!  { [Error: EACCES, open '/home/jinwei/.npm/underscore/1.6.0/package/package.json']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/home/jinwei/.npm/underscore/1.6.0/package/package.json',
npm ERR!   parent: 'github-contributions' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/jinwei/github-contributions
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /home/jinwei/.npm/underscore/1.6.0/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/home/jinwei/.npm/underscore/1.6.0/package/package.json'
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/jinwei/github-contributions/npm-debug.log
npm ERR! not ok code 0
Sucessfully installed. Please type: cd ~/github-contributions
Bye!

I executed sudo wget -qO- https://raw.github.com/IonicaBizau/github-contributions/master/installer.sh | sh

It seems you have some issues related to rights in .npm directory.
Please run this: sudo chown -R whoami** ~/.npm (you don't have to replace whoami because it's a command).

Then repeat the process from previous comment (delete github-contributions and run wget, without sudo).

well, I ran sudo chown -R whoami** ~/.npm, and I got zsh: no matches found: whoami**. (I'm using zsh instead of bash on Ubuntu 14.04).

And if I change to bash, and ran sudo chown -R whoami** ~/.npm, I got chown: 无效的用户: "whoami**". (The Chinese character means "invalid user" in English)

My bad, please run this instead:

sudo chown -R `whoami` ~/.npm

There are "`" characters that I don't know how to put them in inline code. 😄

Now, everything works perfectly! Thank you~:kissing_heart:

Cool! You're welcome! 😄