IonicaBizau / github-contributions

:octocat: A tool that generates a repository which being pushed into your GitHub account creates a nice contributions calendar.
MIT License
1.33k stars 116 forks source link

Error when run `npm start` on Local installation #49

Closed hoangddt closed 9 years ago

hoangddt commented 9 years ago

Hello, I try to install it local by clone and run npm command

Local installation $ git clone git@github.com:IonicaBizau/github-contributions.git $ cd github-contributions $ npm i $ npm start

But after run sudo npm i. I run sudo npm start, it caught an error:

 % sudo npm start                                                                                               !4020

> gh-contributions@2.0.0 start /media/hoangddt/Soft1/source/open-sources/github-contributions
> ./lib/server.js

sh: 1: ./lib/server.js: Permission denied

npm ERR! gh-contributions@2.0.0 start: `./lib/server.js`
npm ERR! Exit status 126
npm ERR! 
npm ERR! Failed at the gh-contributions@2.0.0 start script.
npm ERR! This is most likely a problem with the gh-contributions package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./lib/server.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls gh-contributions
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.16.0-34-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! cwd /media/hoangddt/Soft1/source/open-sources/github-contributions
npm ERR! node -v v0.10.37
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /media/hoangddt/Soft1/source/open-sources/github-contributions/npm-debug.log
npm ERR! not ok code 0

My OS is ubuntu 14.04.

IonicaBizau commented 9 years ago

Hmm... It looks the error is Permission denied–is the package installed on an USB stick or so? Make sure you have execution rights there. :four_leaf_clover: