{"action":"created","issue":{"url":"https://api.github.com/repos/github/generator-hubot/issues/71","repository_url":"https://api.github.com/repos/github/generator-hubot","labels_url":"https://api.github.com/repos/github/generator-hubot/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/github/generator-hubot/issues/71/comments","events_url":"https://api.github.com/repos/github/generator-hubot/issues/71/events","html_url":"https://github.com/github/generator-hubot/issues/71","id":171710660,"number":71,"title":"Error Running Yo: npm ERR! not a package /tmp/npm-30929-OgybIFr-/github.com/RocketChat/asteroid.git","user":{"login":"richardwlu","id":8405384,"avatar_url":"https://avatars.githubusercontent.com/u/8405384?v=3","gravatar_id":"","url":"https://api.github.com/users/richardwlu","html_url":"https://github.com/richardwlu","followers_url":"https://api.github.com/users/richardwlu/followers","following_url":"https://api.github.com/users/richardwlu/following{/other_user}","gists_url":"https://api.github.com/users/richardwlu/gists{/gist_id}","starred_url":"https://api.github.com/users/richardwlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardwlu/subscriptions","organizations_url":"https://api.github.com/users/richardwlu/orgs","repos_url":"https://api.github.com/users/richardwlu/repos","events_url":"https://api.github.com/users/richardwlu/events{/privacy}","received_events_url":"https://api.github.com/users/richardwlu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-17T17:08:37Z","updated_at":"2016-09-20T14:15:10Z","closed_at":null,"body":"When I run `yo hubot` as a non-root user, I am receiving the following error:\r\n\r\n\r\n    [richlu@chat r2z2-test3]$ yo hubot\r\n                         _____________________________\r\n                        /                             \\\r\n       //\\              |      Extracting input for    |\r\n      ////\\    _____    |   self-replication process   |\r\n     //////\\  /_____\\   \\                             /\r\n     ======= |[^_/\\_]|   /----------------------------\r\n      |   | _|___@@__|__\r\n      +===+/  ///     \\_\\\r\n       | |_\\ /// HUBOT/\\\\\r\n       |___/\\//      /  \\\\\r\n             \\      /   +---+\r\n              \\____/    |   |\r\n               | //|    +===+\r\n                \\//      |xx|\r\n    \r\n    ? Owner r2z2\r\n    ? Bot name r2z2.api\r\n    ? Description A simple helpful robot for your Company\r\n    ? Bot adapter (campfire) rocketchatgot back false\r\n    ? Bot adapter rocketchat\r\n       create bin/hubot\r\n       create bin/hubot.cmd\r\n       create Procfile\r\n       create README.md\r\n       create external-scripts.json\r\n       create hubot-scripts.json\r\n       create .gitignore\r\n       create package.json\r\n       create scripts/example.coffee\r\n       create .editorconfig\r\n                         _____________________________\r\n     _____              /                             \\\r\n     \\    \\             |   Self-replication process   |\r\n     |    |    _____    |          complete...         |\r\n     |__\\\\|   /_____\\   \\     Good luck with that.    /\r\n       |//+  |[^_/\\_]|   /----------------------------\r\n      |   | _|___@@__|__\r\n      +===+/  ///     \\_\\\r\n       | |_\\ /// HUBOT/\\\\\r\n       |___/\\//      /  \\\\\r\n             \\      /   +---+\r\n              \\____/    |   |\r\n               | //|    +===+\r\n                \\//      |xx|\r\n    \r\n    npm ERR! not a package /tmp/npm-30929-OgybIFr-/github.com/RocketChat/asteroid.git\r\n    npm ERR! Error: ENOENT, open '/tmp/npm-30929-OgybIFr-/github.com/RocketChat/asteroid.git-unpack/package.json'\r\n    npm ERR! If you need help, you may report this *entire* log,\r\n    npm ERR! including the npm and node versions, at:\r\n    npm ERR!     <http://github.com/npm/npm/issues>\r\n    \r\n    npm ERR! System Linux 3.10.0-327.el7.x86_64\r\n    npm ERR! command \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"hubot\" \"hubot-scripts\" \"hubot-diagnostics\" \"hubot-help\" \"hubot-heroku-keepalive\" \"hubot-google-images\" \"hubot-google-translate\" \"hubot-pugme\" \"hubot-maps\" \"hubot-redis-brain\" \"hubot-rules\" \"hubot-shipit\" \"hubot-rocketchat\" \"--save\"\r\n    npm ERR! cwd /home/richlu/r2z2-test3\r\n    npm ERR! node -v v0.10.40\r\n    npm ERR! npm -v 1.4.28\r\n    npm ERR! path /tmp/npm-30929-OgybIFr-/github.com/RocketChat/asteroid.git-unpack/package.json\r\n    npm ERR! code ENOENT\r\n    npm ERR! errno 34\r\n    npm ERR! not ok code 0\r\n\r\nMy `package.json` turns out empty of dependencies. The last time I ran `yo hubot`, although a few months now, it was running fine. I had yo installed as root. When I try running yo hubot as root I receive:\r\n\r\n    [root@chat hubot-test]# yo hubot\r\n\r\n    Error: EACCES, permission denied '/root/.config'\r\n        at Object.fs.mkdirSync (fs.js:654:18)\r\n        at sync (/usr/local/lib/node_modules/yo/node_modules/mkdirp/index.js:71:13)\r\n        at Function.sync (/usr/local/lib/node_modules/yo/node_modules/mkdirp/index.js:77:24)\r\n        at Object.create.all.get (/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:38:13)\r\n        at Object.Configstore (/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:27:44)\r\n        at new Insight (/usr/local/lib/node_modules/yo/node_modules/insight/lib/index.js:37:34)\r\n        at Object.<anonymous> (/usr/local/lib/node_modules/yo/lib/cli.js:130:11)\r\n        at Module._compile (module.js:456:26)\r\n        at Object.Module._extensions..js (module.js:474:10)\r\n        at Module.load (module.js:356:32)\r\n\r\nThe file `/root/.config` doesn't exist. I am not sure if this is a relevant issue. I'm just trying to dig deeper and determine where this issue is coming from and would like some help."},"comment":{"url":"https://api.github.com/repos/github/generator-hubot/issues/comments/248313922","html_url":"https://github.com/github/generator-hubot/issues/71#issuecomment-248313922","issue_url":"https://api.github.com/repos/github/generator-hubot/issues/71","id":248313922,"user":{"login":"digininja","id":117081,"avatar_url":"https://avatars.githubusercontent.com/u/117081?v=3","gravatar_id":"","url":"https://api.github.com/users/digininja","html_url":"https://github.com/digininja","followers_url":"https://api.github.com/users/digininja/followers","following_url":"https://api.github.com/users/digininja/following{/other_user}","gists_url":"https://api.github.com/users/digininja/gists{/gist_id}","starred_url":"https://api.github.com/users/digininja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digininja/subscriptions","organizations_url":"https://api.github.com/users/digininja/orgs","repos_url":"https://api.github.com/users/digininja/repos","events_url":"https://api.github.com/users/digininja/events{/privacy}","received_events_url":"https://api.github.com/users/digininja/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T14:15:10Z","updated_at":"2016-09-20T14:15:10Z","body":"Just tried making /root/.config and setting it world writable to see what would happen, it still fails but in a different way:\r\n\r\n```\r\n[root@localhost myhubot]# yo hubot --adapter=\"rocketchat@1\"\r\nNative thread-sleep not available.\r\nThis will result in much slower performance, but it will still work.\r\nYou should re-install spawn-sync or upgrade to the lastest version of node if possible.\r\nCheck /usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/external-editor/node_modules/spawn-sync/error.log for more details\r\nNative thread-sleep not available.\r\nThis will result in much slower performance, but it will still work.\r\nYou should re-install spawn-sync or upgrade to the lastest version of node if possible.\r\nCheck /usr/local/lib/node_modules/yo/node_modules/tabtab/node_modules/inquirer/node_modules/external-editor/node_modules/spawn-sync/error.log for more details\r\n? ==========================================================================\r\nWe're constantly looking for ways to make yo better! \r\nMay we anonymously report usage statistics to improve the tool over time? \r\nMore info: https://github.com/yeoman/insight & http://yeoman.io\r\n========================================================================== No\r\n                     _____________________________  \r\n                    /                             \\ \r\n   //\\              |      Extracting input for    |\r\n  ////\\    _____    |   self-replication process   |\r\n //////\\  /_____\\   \\                             / \r\n ======= |[^_/\\_]|   /----------------------------  \r\n  |   | _|___@@__|__                                \r\n  +===+/  ///     \\_\\                               \r\n   | |_\\ /// HUBOT/\\\\                             \r\n   |___/\\//      /  \\\\                            \r\n         \\      /   +---+                            \r\n          \\____/    |   |                            \r\n           | //|    +===+                            \r\n            \\//      |xx|                            \r\n\r\n? Owner User <user@example.com>\r\n? Bot name myhubot\r\n? Description A simple helpful robot for your Company\r\n\r\n/usr/local/lib/node_modules/generator-hubot/node_modules/yeoman-generator/node_modules/mkdirp/index.js:90\r\n                    throw err0;\r\n                          ^\r\nError: EACCES, permission denied '/root/myhubot/bin'\r\n    at Object.fs.mkdirSync (fs.js:654:18)\r\n    at Function.sync (/usr/local/lib/node_modules/generator-hubot/node_modules/yeoman-generator/node_modules/mkdirp/index.js:71:13)\r\n    at yeoman.generators.Base.extend.writing.app (/usr/local/lib/node_modules/generator-hubot/generators/app/index.js:246:12)\r\n    at /usr/local/lib/node_modules/generator-hubot/node_modules/yeoman-generator/lib/base.js:395:14\r\n    at processImmediate [as _immediateCallback] (timers.js:363:15)\r\n"}}
{"actor":{"display_login":"digininja"}}