{"action":"created","issue":{"url":"https://api.github.com/repos/alexfedoseev/generator-flux-on-rails/issues/2","labels_url":"https://api.github.com/repos/alexfedoseev/generator-flux-on-rails/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/alexfedoseev/generator-flux-on-rails/issues/2/comments","events_url":"https://api.github.com/repos/alexfedoseev/generator-flux-on-rails/issues/2/events","html_url":"https://github.com/alexfedoseev/generator-flux-on-rails/issues/2","id":102633499,"number":2,"title":"Error: EACCES, mkdir '/home/developer/.npm/cssnano/2.6.1'","user":{"login":"tnedich","id":6969501,"avatar_url":"https://avatars.githubusercontent.com/u/6969501?v=3","gravatar_id":"","url":"https://api.github.com/users/tnedich","html_url":"https://github.com/tnedich","followers_url":"https://api.github.com/users/tnedich/followers","following_url":"https://api.github.com/users/tnedich/following{/other_user}","gists_url":"https://api.github.com/users/tnedich/gists{/gist_id}","starred_url":"https://api.github.com/users/tnedich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnedich/subscriptions","organizations_url":"https://api.github.com/users/tnedich/orgs","repos_url":"https://api.github.com/users/tnedich/repos","events_url":"https://api.github.com/users/tnedich/events{/privacy}","received_events_url":"https://api.github.com/users/tnedich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-23T15:54:13Z","updated_at":"2015-08-23T16:01:01Z","closed_at":null,"body":"Getting this error when running generator. App part is generated but API part is not.\r\n\r\n**OS: Ubuntu 14.04**\r\n\r\nnpm ERR! Error: EACCES, mkdir '/home/developer/.npm/cssnano/2.6.1'\r\nnpm ERR!  { [Error: EACCES, mkdir '/home/developer/.npm/cssnano/2.6.1']\r\nnpm ERR!   errno: 3,\r\nnpm ERR!   code: 'EACCES',\r\nnpm ERR!   path: '/home/developer/.npm/cssnano/2.6.1',\r\nnpm ERR!   parent: 'css-loader' }\r\nnpm ERR! \r\nnpm ERR! Please try running this command again as root/Administrator.\r\n\r\nnpm ERR! System Linux 3.16.0-46-generic\r\nnpm ERR! command \"/usr/bin/node\" \"/usr/bin/npm\" \"install\" \"autoprefixer-loader\" \"babel-eslint\" \"babel-loader\" \"chunk-manifest-webpack-plugin\" \"compression-webpack-plugin\" \"css-loader\" \"del\" \"eslint\" \"eslint-plugin-babel\" \"eslint-plugin-react\" \"extract-text-webpack-plugin\" \"gulp\" \"gulp-changed\" \"gulp-if\" \"gulp-imagemin\" \"gulp-util\" \"node-notifier\" \"react-hot-loader\" \"redux-devtools\" \"run-sequence\" \"style-loader\" \"stylus-loader\" \"webpack\" \"webpack-dev-server\" \"webpack-manifest-plugin\" \"chai\" \"jsdom\" \"mocha\" \"sinon\" \"--save-dev\" \"--loglevel\" \"error\"\r\nnpm ERR! cwd /home/developer/Desktop/RAILS/my-blog/my-blog-app\r\nnpm ERR! node -v v0.10.40\r\nnpm ERR! npm -v 1.4.28\r\nnpm ERR! path /home/developer/.npm/cssnano/2.6.1\r\nnpm ERR! code EACCES\r\nnpm ERR! errno 3\r\nnpm ERR! stack Error: EACCES, mkdir '/home/developer/.npm/cssnano/2.6.1'\r\nnpm ERR! not ok code 0\r\nCompleted.\r\n\r\n$ npm shrinkwrap --loglevel error\r\nnpm ERR! Error: Problems were encountered\r\nnpm ERR! Please correct and try again.\r\nnpm ERR! extraneous: eslint-plugin-babel@2.1.1 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/eslint-plugin-babel\r\nnpm ERR! extraneous: eslint-plugin-react@3.2.3 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/eslint-plugin-react\r\nnpm ERR! extraneous: compression-webpack-plugin@0.2.0 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/compression-webpack-plugin\r\nnpm ERR! extraneous: webpack-manifest-plugin@0.4.0 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/webpack-manifest-plugin\r\nnpm ERR! extraneous: babel-loader@5.3.2 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/babel-loader\r\nnpm ERR! extraneous: chai@3.2.0 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/chai\r\nnpm ERR! extraneous: extract-text-webpack-plugin@0.8.2 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/extract-text-webpack-plugin\r\nnpm ERR! extraneous: redux-devtools@1.1.0 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/redux-devtools\r\nnpm ERR! extraneous: sinon@1.16.1 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/sinon\r\nnpm ERR! extraneous: style-loader@0.12.3 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/style-loader\r\nnpm ERR! extraneous: autoprefixer-loader@2.0.0 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/autoprefixer-loader\r\nnpm ERR! extraneous: chunk-manifest-webpack-plugin@0.0.1 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/chunk-manifest-webpack-plugin\r\nnpm ERR! extraneous: gulp-changed@1.3.0 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/gulp-changed\r\nnpm ERR! extraneous: mocha@2.2.5 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/mocha\r\nnpm ERR! extraneous: run-sequence@1.1.2 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/run-sequence\r\nnpm ERR! extraneous: babel-eslint@4.0.10 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/babel-eslint\r\nnpm ERR! extraneous: gulp-if@1.2.5 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/gulp-if\r\nnpm ERR! extraneous: stylus-loader@1.2.1 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/stylus-loader\r\nnpm ERR! extraneous: jsdom@6.1.0 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/jsdom\r\nnpm ERR! extraneous: node-notifier@4.2.3 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/node-notifier\r\nnpm ERR! extraneous: webpack-dev-server@1.10.1 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/webpack-dev-server\r\nnpm ERR! extraneous: del@1.2.1 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/del\r\nnpm ERR! extraneous: gulp@3.9.0 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/gulp\r\nnpm ERR! extraneous: gulp-util@3.0.6 /home/developer/Desktop/RAILS/my-blog/my-blog-app/node_modules/gulp-util\r\nnpm ERR!     at shrinkwrap_ (/usr/lib/node_modules/npm/lib/shrinkwrap.js:30:15)\r\nnpm ERR!     at /usr/lib/node_modules/npm/lib/shrinkwrap.js:24:5\r\nnpm ERR!     at /usr/lib/node_modules/npm/lib/ls.js:45:30\r\nnpm ERR!     at /usr/lib/node_modules/npm/node_modules/read-installed/read-installed.js:130:5\r\nnpm ERR!     at /usr/lib/node_modules/npm/node_modules/read-installed/read-installed.js:244:14\r\nnpm ERR!     at cb (/usr/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)\r\nnpm ERR!     at /usr/lib/node_modules/npm/node_modules/read-installed/read-installed.js:244:14\r\nnpm ERR!     at cb (/usr/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)\r\nnpm ERR!     at /usr/lib/node_modules/npm/node_modules/read-installed/read-installed.js:244:14\r\nnpm ERR!     at cb (/usr/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)\r\nnpm ERR! If you need help, you may report this *entire* log,\r\nnpm ERR! including the npm and node versions, at:\r\nnpm ERR!     <http://github.com/npm/npm/issues>\r\n\r\nnpm ERR! System Linux 3.16.0-46-generic\r\nnpm ERR! command \"/usr/bin/node\" \"/usr/bin/npm\" \"shrinkwrap\" \"--loglevel\" \"error\"\r\nnpm ERR! cwd /home/developer/Desktop/RAILS/my-blog/my-blog-app\r\nnpm ERR! node -v v0.10.40\r\nnpm ERR! npm -v 1.4.28\r\nnpm ERR! \r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     /home/developer/Desktop/RAILS/my-blog/my-blog-app/npm-debug.log\r\nnpm ERR! not ok code 0\r\nCompleted.\r\n\r\n\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nError: ENOENT, no such file or directory '/home/developer/Desktop/RAILS/my-blog/my-blog-api/Gemfile'\r\n    at Object.fs.openSync (fs.js:439:18)\r\n    at Object.fs.readFileSync (fs.js:290:15)\r\n    at readFileAsString (/usr/lib/node_modules/generator-flux-on-rails/node_modules/yeoman-generator/lib/actions/wiring.js:277:13)\r\n    at api.editGemfile (/usr/lib/node_modules/generator-flux-on-rails/app/index.js:370:64)\r\n    at module.exports.yeoman.generators.Base.extend.writing.scaffoldApi (/usr/lib/node_modules/generator-flux-on-rails/app/index.js:509:16)\r\n    at /usr/lib/node_modules/generator-flux-on-rails/node_modules/yeoman-generator/lib/base.js:409:16\r\n    at processImmediate [as _immediateCallback] (timers.js:363:15)\r\n"},"comment":{"url":"https://api.github.com/repos/alexfedoseev/generator-flux-on-rails/issues/comments/133869430","html_url":"https://github.com/alexfedoseev/generator-flux-on-rails/issues/2#issuecomment-133869430","issue_url":"https://api.github.com/repos/alexfedoseev/generator-flux-on-rails/issues/2","id":133869430,"user":{"login":"andresgutgon","id":49499,"avatar_url":"https://avatars.githubusercontent.com/u/49499?v=3","gravatar_id":"","url":"https://api.github.com/users/andresgutgon","html_url":"https://github.com/andresgutgon","followers_url":"https://api.github.com/users/andresgutgon/followers","following_url":"https://api.github.com/users/andresgutgon/following{/other_user}","gists_url":"https://api.github.com/users/andresgutgon/gists{/gist_id}","starred_url":"https://api.github.com/users/andresgutgon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresgutgon/subscriptions","organizations_url":"https://api.github.com/users/andresgutgon/orgs","repos_url":"https://api.github.com/users/andresgutgon/repos","events_url":"https://api.github.com/users/andresgutgon/events{/privacy}","received_events_url":"https://api.github.com/users/andresgutgon/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T16:01:01Z","updated_at":"2015-08-23T16:01:01Z","body":"> Please try running this command again as root/Administrator.\r\n\r\nDo you have permissions to write in the folder where you're trying to run this generator?"}}