HabitRPG / habitica

A habit tracker app which treats your goals like a Role Playing Game.
https://habitica.com
Other
11.95k stars 4.08k forks source link

crash at front page #4794

Closed YwnaYr closed 9 years ago

YwnaYr commented 9 years ago

Hi,

I just tried start the server locally. At the first start it worked and i have a registration. But after the registration i get this exception after every page reload (and the play button doesn't work).

GET /static/front 304 1000.126 ms - - GET /bower_components/bootstrap/dist/css/bootstrap.css 304 2.563 ms - - GET /bower_components/css-social-buttons/css/zocial.css 304 1.387 ms - - GET /bower_components/jquery-colorbox/example1/colorbox.css 304 1.134 ms - - GET /common/dist/sprites/habitrpg-shared.css 304 2.802 ms - - GET /bower_components/jquery/dist/jquery.min.js 304 4.011 ms - - GET /static.css 200 7.875 ms - - GET /app.css 200 15.752 ms - - GET /bower_components/angular/angular.js 304 0.739 ms - - GET /bower_components/angular-ui/build/angular-ui.js 304 1.410 ms - - GET /bower_components/angular-bootstrap/ui-bootstrap.js 304 2.193 ms - - GET /common/dist/scripts/habitrpg-shared.js 200 23.009 ms - - GET /bower_components/angular-bootstrap/ui-bootstrap-tpls.js 304 1.465 ms - - GET /bower_components/bootstrap/dist/js/bootstrap.js 304 0.733 ms - - GET /bower_components/jquery-colorbox/jquery.colorbox-min.js 304 0.976 ms - - GET /bower_components/hello/dist/hello.all.min.js 304 1.495 ms - - GET /bower_components/angular-loading-bar/build/loading-bar.js 304 1.514 ms - - GET /js/env.js 304 1.276 ms - - GET /js/static.js 304 0.911 ms - - GET /js/services/notificationServices.js 304 3.130 ms - - GET /common/script/public/userServices.js 304 3.007 ms - - GET /js/controllers/authCtrl.js 304 2.885 ms - - GET /js/controllers/footerCtrl.js 304 2.933 ms - - GET /marketing/devices.png 304 0.825 ms - - GET /common/img/logo/habitrpg_pixel.png 304 0.717 ms - - GET /bower_components/angular/angular.js 304 0.755 ms - - GET /bower_components/angular-ui/build/angular-ui.js 304 0.963 ms - - GET /bower_components/angular-bootstrap/ui-bootstrap.js 304 0.708 ms - - GET /bower_components/angular-bootstrap/ui-bootstrap-tpls.js 304 0.763 ms - - GET /bower_components/bootstrap/dist/js/bootstrap.js 304 0.718 ms - - GET /bower_components/jquery-colorbox/jquery.colorbox-min.js 304 1.129 ms - - GET /bower_components/hello/dist/hello.all.min.js 304 0.764 ms - - GET /bower_components/angular-loading-bar/build/loading-bar.js 304 0.942 ms - - GET /js/env.js 304 0.871 ms - - GET /js/static.js 304 0.739 ms - - GET /js/services/notificationServices.js 304 1.044 ms - - GET /common/script/public/userServices.js 304 0.762 ms - - GET /js/controllers/authCtrl.js 304 0.758 ms - - GET /js/controllers/footerCtrl.js 304 0.739 ms - - GET /common/img/logo/habitrpg_pixel.png 304 0.658 ms - - GET /marketing/devices.png 304 0.805 ms - - error: TypeError: Cannot read property 'save' of undefined at api.batchUpdate (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/website/src/controllers/user.js:485:21) at /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/swagger-node-express/Common/node/swagger.js:388:11 at callbacks (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:164:37) at param (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:138:11) at pass (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:145:5) at Router._dispatch (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:173:5) at Object.router (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:33:10) at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at Object.expressInit as handle at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at Object.query as handle at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at Function.app.handle (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:177:3) at Object.fn as handle at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at pass (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:110:24) at Router._dispatch (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:173:5) at Object.router (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:33:10) at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at pass (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:110:24) at Router._dispatch (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:173:5) at Object.router (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:33:10) at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at pass (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:110:24) at Router._dispatch (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:173:5) at Object.router (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:33:10) at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at pass (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:110:24) at Router._dispatch (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:173:5) at Object.router (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:33:10) at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at Object.serveStatic as handle at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:144:78) at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:144:78) at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:144:78) at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:144:78) at Object.serveStatic as handle at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at pass (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:110:24) at Router._dispatch (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:173:5) at Object.router (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/lib/router/index.js:33:10) at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at SessionStrategy.strategy.pass (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/passport/lib/middleware/authenticate.js:318:9) at SessionStrategy.authenticate (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/passport/lib/strategies/session.js:67:10) at attempt (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/passport/lib/middleware/authenticate.js:341:16) at Object.authenticate as handle at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at Object.initialize as handle at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at Object.cookieSession as handle at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at Object.cookieParser as handle at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at Object.methodOverride as handle at next (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/lib/proto.js:169:15) at /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/node_modules/body-parser/lib/read.js:100:5 at IncomingMessage.onEnd (/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg/node_modules/express/node_modules/connect/node_modules/body-parser/node_modules/raw-body/index.js:136:7) at IncomingMessage.g (events.js:180:16) at IncomingMessage.emit (events.js:92:17) at _stream_readable.js:943:16 at process._tickDomainCallback (node.js:463:13)


Alys commented 9 years ago

Are you able to show us the full log of the entire install process?

YwnaYr commented 9 years ago

At the install, i get lots of error of git cloning, i had to change the git lines in the package.json: "icalendar": "git://github.com/lefnire/node-icalendar#master.git", ---> "icalendar": "https://github.com/lefnire/node-icalendar/tarball/master"

What log do you have to see? npm-debug.log?

Alys commented 9 years ago

That file would help, but the output of the install process would be best. If you are getting errors, we need to see them and resolve them. As with any software install, any errors early in the process must be resolved before the later stages of the process can be expected to work. We could try to debug your install from the npm start errors, but it's very likely to lead us down time-consuming incorrect paths, because the errors you are getting now are almost certainly due to installation errors.

Please also let us know exactly the changes you made (e.g., with a git diff output).

It would also be helpful, if at all possible, to see the errors you had before you made any changes. If we can resolve those, then we might find that your changes are not needed. This would be the ideal situation, since we'd then be working with the same code that the site and other developers use.

YwnaYr commented 9 years ago

Oh, i see. I cant show the output of the installation process if it is not saved in a logfile. I installed it yesterday.

I only edited the package.json. git diff:

/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg# git diff diff --git a/package.json b/package.json index 4b7edab..eb6fdc3 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "grunt-karma": "~0.6.2", "grunt-nodemon": "~0.3.0", "grunt-spritesmith": "~3.5.0",

And the npm-debug.log:

0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ] 2 info using npm@1.4.28 3 info using node@v0.10.33 4 verbose node symlink /usr/bin/node 5 verbose readDependencies using package.json deps 6 verbose install where, deps [ '/opt/lampp/htdocs/habitRPG/habitRPG/habitrpg', 6 verbose install [ 'async', 6 verbose install 'aws-sdk', 6 verbose install 'bower', 6 verbose install 'browserify', 6 verbose install 'coffee-script', 6 verbose install 'coffeeify', 6 verbose install 'connect-ratelimit', 6 verbose install 'coupon-code', 6 verbose install 'domain-middleware', 6 verbose install 'express', 6 verbose install 'express-csv', 6 verbose install 'git-changelog', 6 verbose install 'grunt', 6 verbose install 'grunt-browserify', 6 verbose install 'grunt-cli', 6 verbose install 'grunt-concurrent', 6 verbose install 'grunt-contrib-clean', 6 verbose install 'grunt-contrib-copy', 6 verbose install 'grunt-contrib-cssmin', 6 verbose install 'grunt-contrib-stylus', 6 verbose install 'grunt-contrib-uglify', 6 verbose install 'grunt-contrib-watch', 6 verbose install 'grunt-hashres', 6 verbose install 'grunt-karma', 6 verbose install 'grunt-nodemon', 6 verbose install 'grunt-spritesmith', 6 verbose install 'icalendar', 6 verbose install 'in-app-purchase', 6 verbose install 'jade', 6 verbose install 'js2xmlparser', 6 verbose install 'lodash', 6 verbose install 'image-size', 6 verbose install 'loggly', 6 verbose install 'method-override', 6 verbose install 'moment', 6 verbose install 'mongoose', 6 verbose install 'mongoose-id-autoinc', 6 verbose install 'nconf', 6 verbose install 'newrelic', 6 verbose install 'nib', 6 verbose install 'nodemailer', 6 verbose install 'pageres', 6 verbose install 'passport', 6 verbose install 'passport-facebook', 6 verbose install 'paypal-ipn', 6 verbose install 'paypal-rest-sdk', 6 verbose install 'pretty-data', 6 verbose install 'qs', 6 verbose install 'request', 6 verbose install 's3-upload-stream', 6 verbose install 'stripe', 6 verbose install 'swagger-node-express', 6 verbose install 'universal-analytics', 6 verbose install 'validator', 6 verbose install 'winston', 6 verbose install 'winston-mail', 6 verbose install 'winston-newrelic', 6 verbose install 'coffee-coverage', 6 verbose install 'csv', 6 verbose install 'deep-diff', 6 verbose install 'event-stream', 6 verbose install 'expect.js', 6 verbose install 'glob', 6 verbose install 'karma', 6 verbose install 'karma-chai-plugins', 6 verbose install 'karma-chrome-launcher', 6 verbose install 'karma-coffee-preprocessor', 6 verbose install 'karma-firefox-launcher', 6 verbose install 'karma-html2js-preprocessor', 6 verbose install 'karma-jasmine', 6 verbose install 'karma-mocha', 6 verbose install 'karma-ng-html2js-preprocessor', 6 verbose install 'karma-phantomjs-launcher', 6 verbose install 'karma-requirejs', 6 verbose install 'karma-script-launcher', 6 verbose install 'mocha', 6 verbose install 'mongoskin', 6 verbose install 'phantomjssmith', 6 verbose install 'protractor', 6 verbose install 'rimraf', 6 verbose install 'sinon', 6 verbose install 'superagent', 6 verbose install 'superagent-defaults', 6 verbose install 'vinyl-source-stream', 6 verbose install 'vinyl-transform' ] ] 7 info preinstall habitrpg@0.0.0-152 8 warn package.json expect.js@0.2.0 No repository field. 9 verbose readDependencies using package.json deps 10 verbose already installed skipping grunt-contrib-clean@~0.6.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 11 verbose already installed skipping grunt-contrib-copy@~0.6.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 12 verbose already installed skipping grunt-contrib-cssmin@~0.10.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 13 verbose already installed skipping grunt-contrib-stylus@~0.20.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 14 verbose already installed skipping grunt-contrib-uglify@~0.6.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 15 verbose already installed skipping grunt-contrib-watch@~0.6.1 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 16 verbose already installed skipping grunt-hashres@~0.4.1 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 17 verbose already installed skipping grunt-karma@~0.6.2 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 18 verbose already installed skipping grunt-nodemon@~0.3.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 19 verbose already installed skipping grunt-spritesmith@~3.5.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 20 verbose cache add [ 'icalendar@git+https://username:password@github.com/lefnire/node-icalendar--master.git', 20 verbose cache add null ] 21 verbose cache add name=undefined spec="icalendar@git+https://username:password@github.com/lefnire/node-icalendar--master.git" args=["icalendar@git+https://username:password@github.com/lefnire/node-icalendar--master.git",null] 22 verbose parsed url { protocol: null, 22 verbose parsed url slashes: null, 22 verbose parsed url auth: null, 22 verbose parsed url host: null, 22 verbose parsed url port: null, 22 verbose parsed url hostname: null, 22 verbose parsed url hash: null, 22 verbose parsed url search: null, 22 verbose parsed url query: null, 22 verbose parsed url pathname: 'icalendar@git+https://username:password@github.com/lefnire/node-icalendar--master.git', 22 verbose parsed url path: 'icalendar@git+https://username:password@github.com/lefnire/node-icalendar--master.git', 22 verbose parsed url href: 'icalendar@git+https://username:password@github.com/lefnire/node-icalendar--master.git' } 23 verbose already installed skipping in-app-purchase@^0.2.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 24 verbose already installed skipping jade@~1.7.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 25 verbose cache add name="icalendar" spec="git+https://username:password@github.com/lefnire/node-icalendar--master.git" args=["icalendar","git+https://username:password@github.com/lefnire/node-icalendar--master.git"] 26 verbose parsed url { protocol: 'git+https:', 26 verbose parsed url slashes: true, 26 verbose parsed url auth: 'username:password', 26 verbose parsed url host: 'github.com', 26 verbose parsed url port: null, 26 verbose parsed url hostname: 'github.com', 26 verbose parsed url hash: null, 26 verbose parsed url search: null, 26 verbose parsed url query: null, 26 verbose parsed url pathname: '/lefnire/node-icalendar--master.git', 26 verbose parsed url path: '/lefnire/node-icalendar--master.git', 26 verbose parsed url href: 'git+https://username:password@github.com/lefnire/node-icalendar--master.git' } 27 verbose already installed skipping js2xmlparser@~0.1.2 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 28 silly lockFile f76550b4-efnire-node-icalendar-master-git https://username:password@github.com/lefnire/node-icalendar--master.git 29 verbose lock https://username:password@github.com/lefnire/node-icalendar--master.git /root/.npm/f76550b4-efnire-node-icalendar-master-git.lock 30 verbose already installed skipping lodash@~2.4.1 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 31 verbose addRemoteGit [ 'https://username:password@github.com/lefnire/node-icalendar--master.git', 31 verbose addRemoteGit 'master' ] 32 verbose already installed skipping image-size@~0.3.2 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 33 verbose already installed skipping loggly@~1.0.8 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 34 verbose already installed skipping method-override@~2.2.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 35 verbose already installed skipping moment@~2.8.3 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 36 verbose already installed skipping mongoose@~3.8.23 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 37 verbose already installed skipping mongoose-id-autoinc@~2013.7.14-4 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 38 verbose already installed skipping nconf@~0.6.9 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 39 verbose already installed skipping newrelic@~1.11.2 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 40 verbose already installed skipping nib@~1.0.1 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 41 verbose already installed skipping nodemailer@~0.5.2 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 42 verbose already installed skipping pageres@^1.0.1 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 43 verbose already installed skipping passport@~0.2.1 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 44 verbose already installed skipping passport-facebook@git+https://github.com/Fonger/passport-facebook#a8f98adcddad99caa9a918bc7b76462c92c5c9fd /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 45 verbose already installed skipping paypal-ipn@2.1.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 46 verbose already installed skipping paypal-rest-sdk@^1.2.1 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 47 verbose cache add [ 'pretty-data@git+https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git', 47 verbose cache add null ] 48 verbose cache add name=undefined spec="pretty-data@git+https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git" args=["pretty-data@git+https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git",null] 49 verbose parsed url { protocol: null, 49 verbose parsed url slashes: null, 49 verbose parsed url auth: null, 49 verbose parsed url host: null, 49 verbose parsed url port: null, 49 verbose parsed url hostname: null, 49 verbose parsed url hash: null, 49 verbose parsed url search: null, 49 verbose parsed url query: null, 49 verbose parsed url pathname: 'pretty-data@git+https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git', 49 verbose parsed url path: 'pretty-data@git+https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git', 49 verbose parsed url href: 'pretty-data@git+https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git' } 50 verbose already installed skipping qs@^2.3.2 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 51 verbose already installed skipping request@~2.44.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 52 verbose cache add name="pretty-data" spec="git+https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git" args=["pretty-data","git+https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git"] 53 verbose parsed url { protocol: 'git+https:', 53 verbose parsed url slashes: true, 53 verbose parsed url auth: null, 53 verbose parsed url host: 'username', 53 verbose parsed url port: null, 53 verbose parsed url hostname: 'username', 53 verbose parsed url hash: null, 53 verbose parsed url search: null, 53 verbose parsed url query: null, 53 verbose parsed url pathname: '/:passwordgithub.com/vkiryukhin/pretty-data--master.git', 53 verbose parsed url path: '/:passwordgithub.com/vkiryukhin/pretty-data--master.git', 53 verbose parsed url href: 'git+https://username/:passwordgithub.com/vkiryukhin/pretty-data--master.git' } 54 silly lockFile 919324aa-kiryukhin-pretty-data-master-git https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git 55 verbose lock https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git /root/.npm/919324aa-kiryukhin-pretty-data-master-git.lock 56 verbose already installed skipping s3-upload-stream@^1.0.6 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 57 verbose addRemoteGit [ 'https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git', 57 verbose addRemoteGit 'master' ] 58 verbose already installed skipping stripe@* /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 59 verbose cache add [ 'swagger-node-express@git+https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git', 59 verbose cache add null ] 60 verbose cache add name=undefined spec="swagger-node-express@git+https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git" args=["swagger-node-express@git+https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git",null] 61 verbose parsed url { protocol: null, 61 verbose parsed url slashes: null, 61 verbose parsed url auth: null, 61 verbose parsed url host: null, 61 verbose parsed url port: null, 61 verbose parsed url hostname: null, 61 verbose parsed url hash: null, 61 verbose parsed url search: null, 61 verbose parsed url query: null, 61 verbose parsed url pathname: 'swagger-node-express@git+https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git', 61 verbose parsed url path: 'swagger-node-express@git+https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git', 61 verbose parsed url href: 'swagger-node-express@git+https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git' } 62 verbose already installed skipping universal-analytics@~0.3.2 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 63 verbose already installed skipping validator@~3.19.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 64 verbose already installed skipping winston@~0.8.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 65 verbose cache add name="swagger-node-express" spec="git+https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git" args=["swagger-node-express","git+https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git"] 66 verbose parsed url { protocol: 'git+https:', 66 verbose parsed url slashes: true, 66 verbose parsed url auth: null, 66 verbose parsed url host: 'username', 66 verbose parsed url port: null, 66 verbose parsed url hostname: 'username', 66 verbose parsed url hash: null, 66 verbose parsed url search: null, 66 verbose parsed url query: null, 66 verbose parsed url pathname: '/:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git', 66 verbose parsed url path: '/:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git', 66 verbose parsed url href: 'git+https://username/:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git' } 67 silly lockFile e2a7efd9-wagger-node-express-habitrpg-git https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git 68 verbose lock https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git /root/.npm/e2a7efd9-wagger-node-express-habitrpg-git.lock 69 verbose already installed skipping winston-mail@~0.2.9 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 70 verbose addRemoteGit [ 'https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git', 70 verbose addRemoteGit 'master' ] 71 verbose already installed skipping winston-newrelic@~0.1.4 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 72 verbose already installed skipping coffee-coverage@~0.4.2 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 73 verbose already installed skipping csv@~0.3.6 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 74 verbose already installed skipping deep-diff@~0.1.4 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 75 verbose already installed skipping event-stream@^3.2.2 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 76 verbose already installed skipping expect.js@~0.2.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 77 verbose already installed skipping glob@^4.3.5 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 78 verbose already installed skipping karma@~0.10.2 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 79 verbose already installed skipping karma-chai-plugins@~0.1.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 80 verbose already installed skipping karma-chrome-launcher@~0.1.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 81 verbose already installed skipping karma-coffee-preprocessor@~0.1.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 82 verbose already installed skipping karma-firefox-launcher@~0.1.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 83 verbose already installed skipping karma-html2js-preprocessor@~0.1.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 84 verbose already installed skipping karma-jasmine@~0.1.3 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 85 verbose already installed skipping karma-mocha@0.1.3 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 86 verbose already installed skipping karma-ng-html2js-preprocessor@~0.1.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 87 verbose already installed skipping karma-phantomjs-launcher@~0.1.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 88 verbose already installed skipping karma-requirejs@~0.2.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 89 verbose already installed skipping karma-script-launcher@~0.1.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 90 verbose already installed skipping mocha@~1.12.1 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 91 verbose already installed skipping mongoskin@~0.6.1 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 92 verbose already installed skipping phantomjssmith@~0.5.4 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 93 verbose already installed skipping protractor@~0.14.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 94 verbose already installed skipping rimraf@^2.2.8 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 95 verbose already installed skipping sinon@^1.12.2 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 96 verbose already installed skipping superagent@~0.15.7 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 97 verbose already installed skipping superagent-defaults@~0.1.5 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 98 verbose already installed skipping vinyl-source-stream@^1.0.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 99 verbose already installed skipping vinyl-transform@^1.0.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 100 verbose already installed skipping async@~0.9.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 101 verbose already installed skipping aws-sdk@^2.0.25 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 102 verbose already installed skipping bower@~1.3.12 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 103 verbose already installed skipping browserify@~3.30.2 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 104 verbose already installed skipping coffee-script@1.6.x /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 105 verbose already installed skipping coffeeify@0.6.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 106 verbose already installed skipping connect-ratelimit@0.0.7 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 107 verbose already installed skipping coupon-code@~0.3.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 108 verbose already installed skipping domain-middleware@~0.1.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 109 verbose already installed skipping express@~3.17.5 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 110 verbose already installed skipping express-csv@~0.6.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 111 verbose cache add [ 'git-changelog@git+https://github.com/colegleason/git-changelog', 111 verbose cache add null ] 112 verbose cache add name=undefined spec="git-changelog@git+https://github.com/colegleason/git-changelog" args=["git-changelog@git+https://github.com/colegleason/git-changelog",null] 113 verbose parsed url { protocol: null, 113 verbose parsed url slashes: null, 113 verbose parsed url auth: null, 113 verbose parsed url host: null, 113 verbose parsed url port: null, 113 verbose parsed url hostname: null, 113 verbose parsed url hash: null, 113 verbose parsed url search: null, 113 verbose parsed url query: null, 113 verbose parsed url pathname: 'git-changelog@git+https://github.com/colegleason/git-changelog', 113 verbose parsed url path: 'git-changelog@git+https://github.com/colegleason/git-changelog', 113 verbose parsed url href: 'git-changelog@git+https://github.com/colegleason/git-changelog' } 114 verbose already installed skipping grunt@~0.4.1 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 115 verbose cache add name="git-changelog" spec="git+https://github.com/colegleason/git-changelog" args=["git-changelog","git+https://github.com/colegleason/git-changelog"] 116 verbose parsed url { protocol: 'git+https:', 116 verbose parsed url slashes: true, 116 verbose parsed url auth: null, 116 verbose parsed url host: 'github.com', 116 verbose parsed url port: null, 116 verbose parsed url hostname: 'github.com', 116 verbose parsed url hash: null, 116 verbose parsed url search: null, 116 verbose parsed url query: null, 116 verbose parsed url pathname: '/colegleason/git-changelog', 116 verbose parsed url path: '/colegleason/git-changelog', 116 verbose parsed url href: 'git+https://github.com/colegleason/git-changelog' } 117 silly lockFile 0b3ba773-ub-com-colegleason-git-changelog https://github.com/colegleason/git-changelog 118 verbose lock https://github.com/colegleason/git-changelog /root/.npm/0b3ba773-ub-com-colegleason-git-changelog.lock 119 verbose already installed skipping grunt-browserify@^3.3.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 120 verbose addRemoteGit [ 'https://github.com/colegleason/git-changelog', 'master' ] 121 verbose already installed skipping grunt-cli@~0.1.9 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 122 verbose already installed skipping grunt-concurrent@~1.0.0 /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 123 verbose git remote.origin.url https://github.com/colegleason/git-changelog 124 verbose git fetch -a origin (https://github.com/colegleason/git-changelog) 125 verbose git rev-list -n1 master 521df7e24597266a363793f88e08ced4108d361c 126 verbose resolved git url git+https://github.com/colegleason/git-changelog#521df7e24597266a363793f88e08ced4108d361c 127 verbose tar unpack /tmp/npm-16211-0qx3LaJo/1425372941278-0.4733361299149692/tmp.tgz 128 silly lockFile a1944f4e--4733361299149692-tmp-tgz-unpack tar:///tmp/npm-16211-0qx3LaJo/1425372941278-0.4733361299149692/tmp.tgz-unpack 129 verbose lock tar:///tmp/npm-16211-0qx3LaJo/1425372941278-0.4733361299149692/tmp.tgz-unpack /root/.npm/a1944f4e--4733361299149692-tmp-tgz-unpack.lock 130 silly lockFile 32c4b800-41278-0-4733361299149692-tmp-tgz tar:///tmp/npm-16211-0qx3LaJo/1425372941278-0.4733361299149692/tmp.tgz 131 verbose lock tar:///tmp/npm-16211-0qx3LaJo/1425372941278-0.4733361299149692/tmp.tgz /root/.npm/32c4b800-41278-0-4733361299149692-tmp-tgz.lock 132 silly gunzTarPerm modes [ '755', '644' ] 133 silly gunzTarPerm extractEntry 134 silly gunzTarPerm modified mode [ '', 509, 493 ] 135 silly gunzTarPerm extractEntry .gitignore 136 silly gunzTarPerm modified mode [ '.gitignore', 436, 420 ] 137 silly gunzTarPerm extractEntry .jshintrc 138 silly gunzTarPerm modified mode [ '.jshintrc', 436, 420 ] 139 silly gunzTarPerm extractEntry CHANGELOG.md 140 silly gunzTarPerm modified mode [ 'CHANGELOG.md', 436, 420 ] 141 silly gunzTarPerm extractEntry EXTENDEDCHANGELOG.md 142 silly gunzTarPerm modified mode [ 'EXTENDEDCHANGELOG.md', 436, 420 ] 143 silly gunzTarPerm extractEntry Gruntfile.js 144 silly gunzTarPerm modified mode [ 'Gruntfile.js', 436, 420 ] 145 silly gunzTarPerm extractEntry LICENSE-MIT 146 silly gunzTarPerm modified mode [ 'LICENSE-MIT', 436, 420 ] 147 silly gunzTarPerm extractEntry README.md 148 silly gunzTarPerm modified mode [ 'README.md', 436, 420 ] 149 silly gunzTarPerm extractEntry package.json 150 silly gunzTarPerm modified mode [ 'package.json', 436, 420 ] 151 silly gunzTarPerm extractEntry tasks/ 152 silly gunzTarPerm modified mode [ 'tasks/', 509, 493 ] 153 silly gunzTarPerm extractEntry tasks/git_changelog.js 154 silly gunzTarPerm modified mode [ 'tasks/git_changelog.js', 436, 420 ] 155 silly gunzTarPerm extractEntry tasks/git_changelog_generate.js 156 silly gunzTarPerm modified mode [ 'tasks/git_changelog_generate.js', 509, 493 ] 157 silly gunzTarPerm extractEntry test/ 158 silly gunzTarPerm modified mode [ 'test/', 509, 493 ] 159 silly gunzTarPerm extractEntry test/changelog.spec.js 160 silly gunzTarPerm modified mode [ 'test/changelog.spec.js', 436, 420 ] 161 silly gunzTarPerm extractEntry test/git_changelog_test.js 162 silly gunzTarPerm modified mode [ 'test/git_changelog_test.js', 436, 420 ] 163 silly lockFile a1944f4e--4733361299149692-tmp-tgz-unpack tar:///tmp/npm-16211-0qx3LaJo/1425372941278-0.4733361299149692/tmp.tgz-unpack 164 silly lockFile a1944f4e--4733361299149692-tmp-tgz-unpack tar:///tmp/npm-16211-0qx3LaJo/1425372941278-0.4733361299149692/tmp.tgz-unpack 165 silly lockFile 32c4b800-41278-0-4733361299149692-tmp-tgz tar:///tmp/npm-16211-0qx3LaJo/1425372941278-0.4733361299149692/tmp.tgz 166 silly lockFile 32c4b800-41278-0-4733361299149692-tmp-tgz tar:///tmp/npm-16211-0qx3LaJo/1425372941278-0.4733361299149692/tmp.tgz 167 silly lockFile 0b3ba773-ub-com-colegleason-git-changelog https://github.com/colegleason/git-changelog 168 silly lockFile 0b3ba773-ub-com-colegleason-git-changelog https://github.com/colegleason/git-changelog 169 error git clone https://username:password@github.com/lefnire/node-icalendar--master.git Cloning into bare repository '/root/.npm/_git-remotes/https-username-password-github-com-lefnire-node-icalendar-master-git-f76550b4'... 169 error git clone https://username:password@github.com/lefnire/node-icalendar--master.git 169 error git clone https://username:password@github.com/lefnire/node-icalendar--master.git error: The requested URL returned error: 403 while accessing https://username:password@github.com/lefnire/node-icalendar--master.git/info/refs 169 error git clone https://username:password@github.com/lefnire/node-icalendar--master.git fatal: HTTP request failed 170 silly lockFile f76550b4-efnire-node-icalendar-master-git https://username:password@github.com/lefnire/node-icalendar--master.git 171 silly lockFile f76550b4-efnire-node-icalendar-master-git https://username:password@github.com/lefnire/node-icalendar--master.git 172 error git clone https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git Cloning into bare repository '/root/.npm/_git-remotes/https-username-passwordgithub-com-lefnire-swagger-node-express-habitrpg-git-e2a7efd9'... 172 error git clone https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git 172 error git clone https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git error: The requested URL returned error: 502 while accessing https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git/info/refs 172 error git clone https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git fatal: HTTP request failed 173 silly lockFile e2a7efd9-wagger-node-express-habitrpg-git https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git 174 silly lockFile e2a7efd9-wagger-node-express-habitrpg-git https://username:passwordgithub.com/lefnire/swagger-node-express--habitrpg.git 175 error git clone https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git Cloning into bare repository '/root/.npm/_git-remotes/https-username-passwordgithub-com-vkiryukhin-pretty-data-master-git-919324aa'... 175 error git clone https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git 175 error git clone https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git error: The requested URL returned error: 502 while accessing https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git/info/refs 175 error git clone https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git fatal: HTTP request failed 176 silly lockFile 919324aa-kiryukhin-pretty-data-master-git https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git 177 silly lockFile 919324aa-kiryukhin-pretty-data-master-git https://username:passwordgithub.com/vkiryukhin/pretty-data--master.git 178 error Error: Command failed: error: The requested URL returned error: 403 while accessing https://username:password@github.com/lefnire/node-icalendar--master.git/info/refs 178 error fatal: HTTP request failed 178 error 178 error at ChildProcess.exithandler (child_process.js:648:15) 178 error at ChildProcess.emit (events.js:98:17) 178 error at maybeClose (child_process.js:756:16) 178 error at Socket. (child_process.js:969:11) 178 error at Socket.emit (events.js:95:17) 178 error at Pipe.close (net.js:465:12) 179 error If you need help, you may report this entire log, 179 error including the npm and node versions, at: 179 error http://github.com/npm/npm/issues 180 error System Linux 3.2.0-70-generic 181 error command "/usr/bin/node" "/usr/bin/npm" "install" 182 error cwd /opt/lampp/htdocs/habitRPG/habitRPG/habitrpg 183 error node -v v0.10.33 184 error npm -v 1.4.28 185 error code 128 186 verbose exit [ 1, true ]

As i see the last installation (after the right git paths isnt there)

Alys commented 9 years ago

What I'm about to recommend will probably sound tedious and unpleasant, but I believe it's likely to save us a lot of time in the long run, and has a better chance of giving you a standard installation, which would reduce potential problems in future.

I suggest that you completely delete this current install, including all files cloned from github, and start again from scratch with a fresh clone.

If you take up this advice, don't make changes to any files. If changes are necessary, they can be done later. For now, I would like to see exactly what errors are given before you make any changes.

As soon as you get up to a point in the install process where you find any errors, even if they seem minor, stop and show us the full output of the installation process from the beginning - it's important to save it all! Don't try to go any further until those errors have been resolved.

If you aren't sure if they are errors or warnings, stop and show them to us anyway.

YwnaYr commented 9 years ago

Here is, but i think it is because im behind a proxy

----->git clone https://github.com/HabitRPG/habitrpg.git

Cloning into 'habitrpg'... remote: Counting objects: 69522, done. remote: Compressing objects: 100% (27/27), done. remote: Total 69522 (delta 5), reused 0 (delta 0), pack-reused 69494 Receiving objects: 100% (69522/69522), 143.85 MiB | 470 KiB/s, done. Resolving deltas: 100% (42926/42926), done.

----->git remote set-url origin https://github.com/YwnaYr/habitrpg.git ----->git push ----->git remote add upstream https://github.com/YwnaYr/habitrpg.git ----->git fetch upstream

----->npm install -g grunt-cli bower phantomjs

/usr/bin/grunt -> /usr/lib/node_modules/grunt-cli/bin/grunt /usr/bin/phantomjs -> /usr/lib/node_modules/phantomjs/bin/phantomjs

phantomjs@1.9.16 install /usr/lib/node_modules/phantomjs node install.js

Looks like an npm install -g; unable to check for already installed version. Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 Saving to /usr/lib/node_modules/phantomjs/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2 Using proxy http://10.144.1.11:8080/ Receiving... /usr/bin/bower -> /usr/lib/node_modules/bower/bin/bower

Received 12854K total. Extracting tar contents (via spawned process) Removing /usr/lib/node_modules/phantomjs/lib/phantom Copying extracted folder /usr/lib/node_modules/phantomjs/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2-extract-1425464657301/phantomjs-1.9.8-linux-x86_64 -> /usr/lib/node_modules/phantomjs/lib/phantom Writing location.js file Done. Phantomjs binary available at /usr/lib/node_modules/phantomjs/lib/phantom/bin/phantomjs grunt-cli@0.1.13 /usr/lib/node_modules/grunt-cli ├── nopt@1.0.10 (abbrev@1.0.5) ├── resolve@0.3.1 └── findup-sync@0.1.3 (glob@3.2.11, lodash@2.4.1)

bower@1.3.12 /usr/lib/node_modules/bower ├── is-root@1.0.0 ├── stringify-object@1.0.0 ├── junk@1.0.1 ├── abbrev@1.0.5 ├── which@1.0.9 ├── chmodr@0.1.0 ├── osenv@0.1.0 ├── archy@0.0.2 ├── opn@1.0.1 ├── rimraf@2.2.8 ├── bower-logger@0.2.2 ├── lru-cache@2.5.0 ├── bower-endpoint-parser@0.2.2 ├── graceful-fs@3.0.5 ├── lockfile@1.0.0 ├── nopt@3.0.1 ├── retry@0.6.0 ├── tmp@0.0.23 ├── q@1.0.1 ├── request-progress@0.3.0 (throttleit@0.0.2) ├── semver@2.3.2 ├── shell-quote@1.4.2 (array-filter@0.0.1, array-reduce@0.0.0, array-map@0.0.0, jsonify@0.0.0) ├── p-throttler@0.1.0 (q@0.9.7) ├── chalk@0.5.0 (ansi-styles@1.1.0, escape-string-regexp@1.0.3, supports-color@0.2.0, has-ansi@0.1.0, strip-ansi@0.3.0) ├── fstream@1.0.4 (inherits@2.0.1) ├── bower-json@0.4.0 (intersect@0.0.3, deep-extend@0.2.11, graceful-fs@2.0.3) ├── promptly@0.2.0 (read@1.0.5) ├── mkdirp@0.5.0 (minimist@0.0.8) ├── bower-config@0.5.2 (osenv@0.0.3, graceful-fs@2.0.3, optimist@0.6.1) ├── fstream-ignore@1.0.2 (inherits@2.0.1, minimatch@2.0.1) ├── tar-fs@0.5.2 (pump@0.3.5, tar-stream@0.4.7) ├── decompress-zip@0.0.8 (nopt@2.2.1, mkpath@0.1.0, touch@0.0.2, readable-stream@1.1.13, binary@0.3.0) ├── glob@4.0.6 (inherits@2.0.1, once@1.3.1, minimatch@1.0.0) ├── request@2.42.0 (caseless@0.6.0, json-stringify-safe@5.0.0, aws-sign2@0.5.0, forever-agent@0.5.2, stringstream@0.0.4, oauth-sign@0.4.0, tunnel-agent@0.4.0, qs@1.2.2, node-uuid@1.4.2, mime-types@1.0.2, form-data@0.1.4, http-signature@0.10.1, bl@0.9.4, tough-cookie@0.12.1, hawk@1.1.1) ├── bower-registry-client@0.2.3 (graceful-fs@2.0.3, request-replay@0.2.0, lru-cache@2.3.1, async@0.2.10, mkdirp@0.3.5, request@2.51.0) ├── cardinal@0.4.0 (redeyed@0.4.4) ├── mout@0.9.1 ├── update-notifier@0.2.0 (semver-diff@0.1.0, string-length@0.1.2, latest-version@0.2.0, configstore@0.3.2) ├── inquirer@0.7.1 (figures@1.3.5, mute-stream@0.0.4, through@2.3.6, readline2@0.1.1, lodash@2.4.1, cli-color@0.3.2, rx@2.4.1) ├── handlebars@2.0.0 (optimist@0.3.7, uglify-js@2.3.6) └── insight@0.4.3 (object-assign@1.0.0, async@0.9.0, chalk@0.5.1, lodash.debounce@2.4.1, os-name@1.0.3, tough-cookie@0.12.1, configstore@0.3.2, inquirer@0.6.0)

phantomjs@1.9.16 /usr/lib/node_modules/phantomjs ├── progress@1.1.8 ├── which@1.0.9 ├── kew@0.4.0 ├── request-progress@0.3.1 (throttleit@0.0.2) ├── adm-zip@0.4.4 ├── npmconf@2.1.1 (uid-number@0.0.5, inherits@2.0.1, osenv@0.1.0, ini@1.3.3, nopt@3.0.1, once@1.3.1, config-chain@1.1.8, mkdirp@0.5.0, semver@4.3.1) ├── fs-extra@0.16.4 (jsonfile@2.0.0, graceful-fs@3.0.5, rimraf@2.3.0) └── request@2.42.0 (caseless@0.6.0, oauth-sign@0.4.0, json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, stringstream@0.0.4, tunnel-agent@0.4.0, qs@1.2.2, node-uuid@1.4.2, mime-types@1.0.2, form-data@0.1.4, http-signature@0.10.1, bl@0.9.4, tough-cookie@0.12.1, hawk@1.1.1)

----->npm install

npm ERR! git clone git://github.com/vkiryukhin/pretty-data Cloning into bare repository '/root/.npm/_git-remotes/git-github-com-vkiryukhin-pretty-data-c68e0987'... npm ERR! git clone git://github.com/vkiryukhin/pretty-data npm ERR! git clone git://github.com/vkiryukhin/pretty-data fatal: unable to connect to github.com: npm ERR! git clone git://github.com/vkiryukhin/pretty-data github.com[0: 192.30.252.128]: errno=Connection timed out npm ERR! git clone git://github.com/lefnire/swagger-node-express Cloning into bare repository '/root/.npm/_git-remotes/git-github-com-lefnire-swagger-node-express-f2f45ac8'... npm ERR! git clone git://github.com/lefnire/swagger-node-express npm ERR! git clone git://github.com/lefnire/swagger-node-express fatal: unable to connect to github.com: npm ERR! git clone git://github.com/lefnire/swagger-node-express github.com[0: 192.30.252.128]: errno=Connection timed out npm ERR! git clone git://github.com/lefnire/node-icalendar Cloning into bare repository '/root/.npm/_git-remotes/git-github-com-lefnire-node-icalendar-0b807b4c'... npm ERR! git clone git://github.com/lefnire/node-icalendar npm ERR! git clone git://github.com/lefnire/node-icalendar fatal: unable to connect to github.com: npm ERR! git clone git://github.com/lefnire/node-icalendar github.com[0: 192.30.252.128]: errno=Connection timed out npm ERR! Error: Command failed: fatal: unable to connect to github.com: npm ERR! github.com[0: 192.30.252.128]: errno=Connection timed out npm ERR! npm ERR! npm ERR! at ChildProcess.exithandler (child_process.js:648:15) npm ERR! at ChildProcess.emit (events.js:98:17) npm ERR! at maybeClose (child_process.js:756:16) npm ERR! at Socket. (child_process.js:969:11) npm ERR! at Socket.emit (events.js:95:17) npm ERR! at Pipe.close (net.js:465:12) npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 3.2.0-70-generic npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" npm ERR! cwd /opt/lampp/htdocs/habitRPG/habitrpg npm ERR! node -v v0.10.33 npm ERR! npm -v 1.4.28 npm ERR! code 128 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/lampp/htdocs/habitRPG/habitrpg/npm-debug.log npm ERR! not ok code 0

Alys commented 9 years ago

Yes, it could be the proxy. Before we edit anything though, I'd like to see if there's a way to make git compensate automatically. I'll have to look into that tomorrow (it's bedtime for me now), but you might want to try googling to see if you can find anything about allowing git://... to work through a proxy for package.json and bower.json. For example, you might be able to configure git to ignore the git:// protocol and use the http protocol, without manually editing any files. Manual edits are undesirable because those json files are updated fairly often.

It's also important that you get your git remotes set up correctly. At the moment, you have both origin and upstream pointing to your own repository. Read through the "Git" section in Guidance for Blacksmiths. Once the remotes are correct, fetch from upstream and rebase your local develop branch to ensure you have the latest code.

Alys commented 9 years ago

This should avoid the need to edit the package.json and bower.json files: Troubleshooting - npm/npm Wiki --> npm only uses git: and ssh+git: URLs for GitHub repos, breaking proxies. Please let us know if it doesn't work and show us the errors and any other relevant material.

YwnaYr commented 9 years ago

Hi,

I just checkout, and the npm install worked, but now i get this at npm start:

habitrpg@0.0.0-152 start /opt/lampp/htdocs/habitRPG/habitrpg2/habitrpg grunt run:dev

Running "browserify:dist" (browserify) task

Running "stylus:build" (stylus) task

Error: website/public/css/index.styl:6:9 2| //@import "nib/vendor" 3| 4| // Vendor Includes - include first so we can override 5| // Import only styles that do not have urls to images! Include them directly in the page! 6| @import "../bower_components/bootstrap-tour/build/css/bootstrap-tour.min.css" --------------^ 7| @import "../bower_components/angular-loading-bar/build/loading-bar.css" 8| @import "../bower_components/js-emoji/emoji.css" 9| @import "../bower_components/select2/select2.css"

failed to locate @import file ../bower_components/bootstrap-tour/build/css/bootstrap-tour.min.css Warning: Stylus failed to compile. Use --force to continue.

Aborted due to warnings.

npm ERR! habitrpg@0.0.0-152 start: grunt run:dev npm ERR! Exit status 6 npm ERR! npm ERR! Failed at the habitrpg@0.0.0-152 start script. npm ERR! This is most likely a problem with the habitrpg package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! grunt run:dev npm ERR! You can get their info via: npm ERR! npm owner ls habitrpg npm ERR! There is likely additional logging output above. npm ERR! System Linux 3.2.0-70-generic npm ERR! command "/usr/bin/node" "/usr/bin/npm" "start" npm ERR! cwd /opt/lampp/htdocs/habitRPG/habitrpg2/habitrpg npm ERR! node -v v0.10.33 npm ERR! npm -v 1.4.28 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/lampp/htdocs/habitRPG/habitrpg2/habitrpg/npm-debug.log npm ERR! not ok code 0

Alys commented 9 years ago

@YwnaYr since it's not finding bower components, it's likely that the bower install had errors. Can you show us the full output of your latest install and also the output of `ls website/public/bower_components/

YwnaYr commented 9 years ago

oh, thank you!

I run "bower install" separately and its now working.