{"action":"created","issue":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4591","labels_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4591/labels{/name}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4591/comments","events_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4591/events","html_url":"https://github.com/HabitRPG/habitrpg/issues/4591","id":55945973,"number":4591,"title":"Problems setting up Vagrant dev box","user":{"login":"gkjt","id":9748784,"avatar_url":"https://avatars.githubusercontent.com/u/9748784?v=3","gravatar_id":"","url":"https://api.github.com/users/gkjt","html_url":"https://github.com/gkjt","followers_url":"https://api.github.com/users/gkjt/followers","following_url":"https://api.github.com/users/gkjt/following{/other_user}","gists_url":"https://api.github.com/users/gkjt/gists{/gist_id}","starred_url":"https://api.github.com/users/gkjt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkjt/subscriptions","organizations_url":"https://api.github.com/users/gkjt/orgs","repos_url":"https://api.github.com/users/gkjt/repos","events_url":"https://api.github.com/users/gkjt/events{/privacy}","received_events_url":"https://api.github.com/users/gkjt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":50,"created_at":"2015-01-29T19:39:08Z","updated_at":"2015-02-18T21:57:47Z","closed_at":null,"body":"I am currently trying to set up a Vagrant box in order to start contributing, but I am unable to get npm to start. I have tried reinstalling most things, redownloading the project, and looked at similar issues with no success.\r\n\r\nTo begin with, trying `vagrant up` into git shell starts things going, and it goes well up to npm, when it outputs my first attached output below. Some of it seems optional but the stuff on npm may be relevant.\r\n\r\nAfter this it gets to the bower decompression, with most things green but several parts failing, until it gets to the end, where it outputs as in output 2. This appears to be a C funtion call failing, but I do not have the experience to tell for sure. This is the last output for `vagrant up`.\r\n\r\nI can then `vagrant ssh` in without issue and it puts me straight into `/vagrant`. I try `npm start` and get output 3, which says it is an issue in `grunt dev:run`, confirmed by output 4 when I try `bower update` from the troubleshooting guide. Using `ls` however I can see the `Gruntfile.js`. I tried `bower clean` `bower install -f` too with the same effect.\r\n\r\n`npm install` outputs as in output 5. I really cant see what I can do to fix it, so I would be grateful for any help. From what I can see, maybe the `node` and `npm` versions are too far updated from the project? \r\n\r\nMy apologies for the length of this issue but I want to make sure the information is all here to see.\r\n\r\n\r\nOutput 1:\r\n```\r\n==> default: Installing HabitRPG\r\n==> default: npm\r\n==> default:\r\n==> default: WARN\r\n==> default: package.json\r\n==> default:  karma-firefox-launcher@0.1.4 No README data\r\n==> default: npm WARN\r\n==> default: package.json karma-chrome-launcher@0.1.7 No README data\r\n==> default: npm\r\n==> default:\r\n==> default: WARN\r\n==> default:\r\n==> default: package.json\r\n==> default:  icalendar@0.6.4 No repository field.\r\n==> default: npm WARN\r\n==> default:  package.json expect.js@0.2.0 No repository field.\r\n==> default: npm WARN engine hawk@0.10.2: wanted: {\"node\":\"0.8.x\"} (current: {\"node\":\"0.10.33\",\"npm\":\"1.4.28\"})\r\n==> default: npm\r\n==> default:\r\n==> default: WARN\r\n==> default:\r\n==> default: optional dep failed, continuing fsevents@0.2.1\r\n==> default: npm\r\n==> default:  WARN engine cryptiles@0.1.3: wanted: {\"node\":\"0.8.x\"} (current: {\"node\":\"0.10.33\",\"npm\":\"1.4.28\"})\r\n==> default: npm\r\n==> default:\r\n==> default: WARN\r\n==> default:  engine sntp@0.1.4: wanted: {\"node\":\"0.8.x\"} (current: {\"node\":\"0.10.33\",\"npm\":\"1.4.28\"})\r\n==> default: npm\r\n==> default:\r\n==> default: WARN\r\n==> default:\r\n==> default: engine\r\n==> default:  hoek@0.7.6: wanted: {\"node\":\"0.8.x\"} (current: {\"node\":\"0.10.33\",\"npm\":\"1.4.28\"})\r\n==> default: npm WARN\r\n==> default:  engine boom@0.3.8: wanted: {\"node\":\"0.8.x\"} (current: {\"node\":\"0.10.33\",\"npm\":\"1.4.28\"})\r\n==> default: npm\r\n==> default:\r\n==> default: WARN\r\n==> default:\r\n==> default: package.json\r\n==> default:  proxying-agent@0.1.5 'repositories' (plural) Not supported. Please pick one as the 'repository' field\r\n==> default: npm\r\n==> default:\r\n==> default: WARN\r\n==> default:\r\n==> default: optional dep failed, continuing\r\n==> default:  uglify-js@2.3.6\r\n==> default: npm\r\n==> default:\r\n==> default: ERR! Error: UNKNOWN, symlink '../rimraf/bin.js'\r\n==> default: npm\r\n==> default: ERR!\r\n==> default:  If you need help, you may report this *entire* log,\r\n==> default: npm ERR! including the npm and node versions, at:\r\n==> default: npm\r\n==> default:  ERR!     <http://github.com/npm/npm/issues>\r\n==> default: npm ERR! System Linux 3.2.0-23-generic\r\n==> default: npm ERR! command \"/usr/bin/node\" \"/usr/bin/npm\" \"install\"\r\n==> default: npm ERR! cwd /vagrant\r\n==> default: npm ERR! node -v\r\n==> default:  v0.10.33\r\n==> default: npm ERR! npm -v 1.4.28\r\n==> default: npm ERR! path ../rimraf/bin.js\r\n==> default: npm ERR!\r\n==> default:\r\n==> default: code UNKNOWN\r\n==> default: npm ERR! errno\r\n==> default:  -1\r\n==> default: npm\r\n==> default: ERR!\r\n==> default: not ok code 0\r\n```\r\n\r\nOutput 2:\r\n```\r\n==> default: bower angular-ui-select2#*                 ETXTBSY ETXTBSY, unlink '/vagrant/.bower-tmp/angular-ui-select2-\r\n17747-EX0Lut/archive.tar.gz'\r\n==> default:\r\n==> default: Stack trace:\r\n==> default: Error: ETXTBSY, unlink '/vagrant/.bower-tmp/angular-ui-select2-17747-EX0Lut/archive.tar.gz'\r\n==> default:\r\n==> default: Console trace:\r\n==> default: Trace\r\n==> default:     at StandardRenderer.error (/usr/lib/node_modules/bower/lib/renderers/StandardRenderer.js:82:17)\r\n==> default:     at Logger.<anonymous> (/usr/lib/node_modules/bower/bin/bower:110:22)\r\n==> default:     at Logger.emit (events.js:95:17)\r\n==> default:     at Logger.emit (/usr/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)\r\n==> default:     at /usr/lib/node_modules/bower/lib/commands/index.js:40:20\r\n==> default:     at _rejected (/usr/lib/node_modules/bower/node_modules/q/q.js:797:24)\r\n==> default:     at /usr/lib/node_modules/bower/node_modules/q/q.js:823:30\r\n==> default:     at Promise.when (/usr/lib/node_modules/bower/node_modules/q/q.js:1035:31)\r\n==> default:     at Promise.promise.promiseDispatch (/usr/lib/node_modules/bower/node_modules/q/q.js:741:41)\r\n==> default:     at /usr/lib/node_modules/bower/node_modules/q/q.js:557:44\r\n==> default:\r\n==> default: System info:\r\n==> default: Bower version: 1.3.12\r\n==> default: Node version: 0.10.33\r\n==> default: OS: Linux 3.2.0-23-generic x64\r\nThe SSH command responded with a non-zero exit status. Vagrant\r\nassumes that this means the command failed. The output for this command\r\nshould be in the log above. Please read the output to determine what\r\nwent wrong.\r\n```\r\n\r\nOutput 3:\r\n```\r\nvagrant@habitrpg:/vagrant$ npm start\r\n\r\n> habitrpg@0.0.0-152 start /vagrant\r\n> grunt run:dev\r\n\r\ngrunt-cli: The grunt command line interface. (v0.1.13)\r\n\r\nFatal error: Unable to find local grunt.\r\n\r\nIf you're seeing this message, either a Gruntfile wasn't found or grunt\r\nhasn't been installed locally to your project. For more information about\r\ninstalling and configuring grunt, please see the Getting Started guide:\r\n\r\nhttp://gruntjs.com/getting-started\r\n\r\nnpm ERR! habitrpg@0.0.0-152 start: `grunt run:dev`\r\nnpm ERR! Exit status 99\r\nnpm ERR!\r\nnpm ERR! Failed at the habitrpg@0.0.0-152 start script.\r\nnpm ERR! This is most likely a problem with the habitrpg package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     grunt run:dev\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls habitrpg\r\nnpm ERR! There is likely additional logging output above.\r\nnpm ERR! System Linux 3.2.0-23-generic\r\nnpm ERR! command \"/usr/bin/node\" \"/usr/bin/npm\" \"start\"\r\nnpm ERR! cwd /vagrant\r\nnpm ERR! node -v v0.10.33\r\nnpm ERR! npm -v 1.4.28\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR!\r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     /vagrant/npm-debug.log\r\nnpm ERR! not ok code 0\r\n```\r\n\r\nOutput 4:\r\n\r\n```\r\nbower github-buttons#*                ETXTBSY ETXTBSY, unlink '/vagrant/.bower-tmp/github-buttons-17927-JwMvCf/archive.t\r\nar.gz'\r\n\r\nStack trace:\r\nError: ETXTBSY, unlink '/vagrant/.bower-tmp/github-buttons-17927-JwMvCf/archive.tar.gz'\r\n\r\nConsole trace:\r\nTrace\r\n    at StandardRenderer.error (/usr/lib/node_modules/bower/lib/renderers/StandardRenderer.js:82:17)\r\n    at Logger.<anonymous> (/usr/lib/node_modules/bower/bin/bower:110:22)\r\n    at Logger.emit (events.js:95:17)\r\n    at Logger.emit (/usr/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)\r\n    at /usr/lib/node_modules/bower/lib/commands/index.js:40:20\r\n    at _rejected (/usr/lib/node_modules/bower/node_modules/q/q.js:797:24)\r\n    at /usr/lib/node_modules/bower/node_modules/q/q.js:823:30\r\n    at Promise.when (/usr/lib/node_modules/bower/node_modules/q/q.js:1035:31)\r\n    at Promise.promise.promiseDispatch (/usr/lib/node_modules/bower/node_modules/q/q.js:741:41)\r\n    at /usr/lib/node_modules/bower/node_modules/q/q.js:557:44\r\n\r\nSystem info:\r\nBower version: 1.3.12\r\nNode version: 0.10.33\r\nOS: Linux 3.2.0-23-generic x64\r\nvagrant@habitrpg:/vagrant$ grunt run:dev\r\ngrunt-cli: The grunt command line interface. (v0.1.13)\r\n\r\nFatal error: Unable to find local grunt.\r\n\r\nIf you're seeing this message, either a Gruntfile wasn't found or grunt\r\nhasn't been installed locally to your project. For more information about\r\ninstalling and configuring grunt, please see the Getting Started guide:\r\n\r\nhttp://gruntjs.com/getting-started\r\n```\r\n\r\nOutput 5:\r\n```\r\nnpm WARN package.json icalendar@0.6.4 No repository field.\r\nnpm WARN package.json karma-firefox-launcher@0.1.4 No README data\r\nnpm WARN package.json karma-chrome-launcher@0.1.7 No README data\r\nnpm WARN package.json expect.js@0.2.0 No repository field.\r\nnpm WARN engine hawk@0.10.2: wanted: {\"node\":\"0.8.x\"} (current: {\"node\":\"0.10.33\",\"npm\":\"2.3.0\"})\r\nnpm WARN optional dep failed, continuing fsevents@0.2.1\r\nnpm WARN engine cryptiles@0.1.3: wanted: {\"node\":\"0.8.x\"} (current: {\"node\":\"0.10.33\",\"npm\":\"2.3.0\"})\r\nnpm WARN engine sntp@0.1.4: wanted: {\"node\":\"0.8.x\"} (current: {\"node\":\"0.10.33\",\"npm\":\"2.3.0\"})\r\nnpm WARN engine boom@0.3.8: wanted: {\"node\":\"0.8.x\"} (current: {\"node\":\"0.10.33\",\"npm\":\"2.3.0\"})\r\nnpm WARN engine hoek@0.7.6: wanted: {\"node\":\"0.8.x\"} (current: {\"node\":\"0.10.33\",\"npm\":\"2.3.0\"})\r\nnpm WARN package.json proxying-agent@0.1.5 'repositories' (plural) Not supported. Please pick one as the 'repository' fi\r\neld\r\nnpm WARN optional dep failed, continuing uglify-js@2.3.6\r\nnpm ERR! Linux 3.2.0-23-generic\r\nnpm ERR! argv \"node\" \"/usr/bin/npm\" \"install\"\r\nnpm ERR! node v0.10.33\r\nnpm ERR! npm  v2.3.0\r\nnpm ERR! path ../rimraf/bin.js\r\nnpm ERR! code UNKNOWN\r\nnpm ERR! errno -1\r\n\r\nnpm ERR! UNKNOWN, symlink '../rimraf/bin.js'\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <http://github.com/npm/npm/issues>\r\nnpm ERR! Linux 3.2.0-23-generic\r\nnpm ERR! argv \"node\" \"/usr/bin/npm\" \"install\"\r\nnpm ERR! node v0.10.33\r\nnpm ERR! npm  v2.3.0\r\nnpm ERR! path npm-debug.log.a558955dac4bcca93da58d5ba630320c\r\nnpm ERR! code ETXTBSY\r\nnpm ERR! errno 62\r\n\r\nnpm ERR! ETXTBSY, rename 'npm-debug.log.a558955dac4bcca93da58d5ba630320c'\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <http://github.com/npm/npm/issues>\r\n\r\nnpm ERR! Please include the following file with any support request:\r\n```\r\n\r\n\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/8137542-problems-setting-up-vagrant-dev-box?utm_campaign=plugin&utm_content=tracker%2F68393&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F68393&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/comments/74956902","html_url":"https://github.com/HabitRPG/habitrpg/issues/4591#issuecomment-74956902","issue_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4591","id":74956902,"user":{"login":"chimericdream","id":198075,"avatar_url":"https://avatars.githubusercontent.com/u/198075?v=3","gravatar_id":"","url":"https://api.github.com/users/chimericdream","html_url":"https://github.com/chimericdream","followers_url":"https://api.github.com/users/chimericdream/followers","following_url":"https://api.github.com/users/chimericdream/following{/other_user}","gists_url":"https://api.github.com/users/chimericdream/gists{/gist_id}","starred_url":"https://api.github.com/users/chimericdream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chimericdream/subscriptions","organizations_url":"https://api.github.com/users/chimericdream/orgs","repos_url":"https://api.github.com/users/chimericdream/repos","events_url":"https://api.github.com/users/chimericdream/events{/privacy}","received_events_url":"https://api.github.com/users/chimericdream/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T21:57:46Z","updated_at":"2015-02-18T21:57:46Z","body":"I will try downloading a fresh copy of the VM tonight to see if I can get the same error. I don't know how much assistance I can be tracking down a fix, but I'll help where I can."}}