{"action":"created","issue":{"url":"https://api.github.com/repos/meanjs/generator-meanjs/issues/124","labels_url":"https://api.github.com/repos/meanjs/generator-meanjs/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/meanjs/generator-meanjs/issues/124/comments","events_url":"https://api.github.com/repos/meanjs/generator-meanjs/issues/124/events","html_url":"https://github.com/meanjs/generator-meanjs/issues/124","id":108311245,"number":124,"title":"Unable to generate meanjs using yo generator","user":{"login":"Ami190","id":10527461,"avatar_url":"https://avatars.githubusercontent.com/u/10527461?v=3","gravatar_id":"","url":"https://api.github.com/users/Ami190","html_url":"https://github.com/Ami190","followers_url":"https://api.github.com/users/Ami190/followers","following_url":"https://api.github.com/users/Ami190/following{/other_user}","gists_url":"https://api.github.com/users/Ami190/gists{/gist_id}","starred_url":"https://api.github.com/users/Ami190/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ami190/subscriptions","organizations_url":"https://api.github.com/users/Ami190/orgs","repos_url":"https://api.github.com/users/Ami190/repos","events_url":"https://api.github.com/users/Ami190/events{/privacy}","received_events_url":"https://api.github.com/users/Ami190/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-09-25T11:59:07Z","updated_at":"2015-11-11T21:30:47Z","closed_at":null,"body":"I am trying to generate Meanjs with yo meanjs command, . Installed the generator generator-meanjs. But when I tried to install meanjs I am getting below error. Please suggest on what to do.\r\n\r\n\r\n\r\n\r\n              Unhandled rejection Error: Command failed: C:\\Windows\\system32\\cmd.exe /s /c \"cd mean && npm install\"\r\n\r\n    npm WARN engine karma@0.12.37: wanted: {\"node\":\">=0.8 <=0.12 || >=1 <=2\"} (current: {\"node\":\"4.1.1\",\"npm\":\"3.3.3\"})\r\n\r\n    npm WARN engine xmlbuilder@2.2.1: wanted: {\"node\":\"0.8.x || 0.10.x\"} (current: {\"node\":\"4.1.1\",\"npm\":\"3.3.3\"})\r\n\r\n    npm WARN install Couldn't install optional dependency: Unsupported\r\n\r\n    npm WARN install Couldn't install optional dependency: Unsupported\r\n\r\n    npm WARN prefer global jshint@2.8.0 should be installed with -g\r\n\r\n    npm WARN prefer global node-gyp@3.0.3 should be installed with -g\r\n\r\n    npm WARN prefer global nodemon@1.3.8 should be installed with -g\r\n    gyp ERR! build error\r\n\r\n    gyp ERR! stack Error: `C:\\Program Files (x86)\\MSBuild\\12.0\\bin\\msbuild.exe` failed with exit code: 1\r\n\r\n            gyp ERR! stack     at ChildProcess.onExit (C:\\Users\\LENOVO\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\build.js:270:23)\r\n\r\n\r\n\r\n\r\n\r\n            gyp ERR! stack     at emitTwo (events.js:87:13)\r\n    gyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\n    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\r\n    gyp ERR! System Windows_NT 6.1.7601\r\n\r\n             gyp ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\LENOVO\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"rebuild\"\r\n\r\n\r\n            gyp ERR! cwd C:\\MEANProject\\mean\\node_modules\\selenium-webdriver\\node_modules\\bu fferutil\r\n    gyp ERR! node -v v4.1.1\r\n    gyp ERR! node-gyp -v v3.0.1\r\n    gyp ERR! not ok\r\n    npm WARN EPACKAGEJSON mean@0.0.0 No repository field.\r\n    npm ERR! Windows_NT 6.1.7601\r\n    npm ERR! argv \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\LENOVO\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\"\r\n    npm ERR! node v4.1.1\r\n    npm ERR! npm  v3.3.3\r\n    npm ERR! code ELIFECYCLE\r\n\r\n    npm ERR! bufferutil@1.1.0 install: `node-gyp rebuild`\r\n    npm ERR! Exit status 1\r\n    npm ERR!\r\n    npm ERR! Failed at the bufferutil@1.1.0 install script 'node-gyp rebuild'.\r\n    npm ERR! This is most likely a problem with the bufferutil package,\r\n    npm ERR! not with npm itself.\r\n    npm ERR! Tell the author that this fails on your system:\r\n    npm ERR!     node-gyp rebuild\r\n    npm ERR! You can get their info via:\r\n    npm ERR!     npm owner ls bufferutil\r\n    npm ERR! There is likely additional logging output above.\r\n\r\n    npm ERR! Please include the following file with any support request:\r\n    npm ERR!     C:\\MEANProject\\mean\\npm-debug.log\r\n\r\n    at ChildProcess.exithandler (child_process.js:203:12)\r\n    at emitTwo (events.js:87:13)\r\n    at ChildProcess.emit (events.js:172:7)\r\n    at maybeClose (internal/child_process.js:817:16)\r\n    at Socket.<anonymous> (internal/child_process.js:319:11)\r\n    at emitOne (events.js:77:13)\r\n    at Socket.emit (events.js:169:7)\r\n    at Pipe._onclose (net.js:469:12)\r\n    \r\n\r\n\r\nbelow is the setup:\r\n\r\n$ node -v\r\n v4.1.1\r\n$ npm --v\r\n2.14.3\r\n$ yo --version\r\n1.4.8\r\nPlease Suggest.."},"comment":{"url":"https://api.github.com/repos/meanjs/generator-meanjs/issues/comments/155916173","html_url":"https://github.com/meanjs/generator-meanjs/issues/124#issuecomment-155916173","issue_url":"https://api.github.com/repos/meanjs/generator-meanjs/issues/124","id":155916173,"user":{"login":"jchukwum","id":2135562,"avatar_url":"https://avatars.githubusercontent.com/u/2135562?v=3","gravatar_id":"","url":"https://api.github.com/users/jchukwum","html_url":"https://github.com/jchukwum","followers_url":"https://api.github.com/users/jchukwum/followers","following_url":"https://api.github.com/users/jchukwum/following{/other_user}","gists_url":"https://api.github.com/users/jchukwum/gists{/gist_id}","starred_url":"https://api.github.com/users/jchukwum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchukwum/subscriptions","organizations_url":"https://api.github.com/users/jchukwum/orgs","repos_url":"https://api.github.com/users/jchukwum/repos","events_url":"https://api.github.com/users/jchukwum/events{/privacy}","received_events_url":"https://api.github.com/users/jchukwum/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T21:30:47Z","updated_at":"2015-11-11T21:30:47Z","body":"Unfortunately, I too am having the same problem. Even after choosing master as described by Cody.\r\n\r\nThis is my ouput:\r\n\r\njchukwum@mxsdev1:~/projects/bill$ yo meanjs\r\nundefined\r\nYou're using the official MEAN.JS generator.\r\n? What mean.js version would you like to generate? master\r\nmaster\r\n? In which folder would you like the project to be generated? This can be changed later. mean\r\nCloning the MEAN repo.......\r\n? What would you like to call your application? MEAN\r\n? How would you describe your application? Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js\r\n? How would you describe your application in comma seperated key words? MongoDB, Express, AngularJS, Node.js\r\n? What is your company/author name?\r\n? Would you like to generate the article example CRUD module? Yes\r\n? Would you like to generate the chat example module? Yes\r\n   create mean/package.json\r\n   create mean/bower.json\r\n   create mean/config/env/default.js\r\nRunning npm install for you....\r\nThis may take a couple minutes.\r\nError: Command failed: /bin/sh -c cd mean && npm install\r\nnpm WARN engine karma@0.12.37: wanted: {\"node\":\">=0.8 <=0.12 || >=1 <=2\"} (current: {\"node\":\"4.2.2\",\"npm\":\"3.3.12\"})\r\nnpm WARN install Couldn't install optional dependency: Unsupported\r\nnpm WARN install Couldn't install optional dependency: Unsupported\r\nnpm WARN prefer global jshint@2.8.0 should be installed with -g\r\nnpm WARN prefer global node-gyp@3.0.3 should be installed with -g\r\nnpm WARN prefer global nodemon@1.3.8 should be installed with -g\r\nnpm WARN prefer global node-inspector@0.10.2 should be installed with -g\r\n/home/jchukwum/projects/bill/mean/node_modules/.bin/touch: 1: /home/jchukwum/projects/bill/mean/node_modules/.bin/touch: Syntax error: \"(\" unexpected\r\nmake: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 2\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/home/jchukwum/npm/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)\r\ngyp ERR! stack     at emitTwo (events.js:87:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\r\ngyp ERR! System Linux 3.8.0-44-generic\r\ngyp ERR! command \"/usr/bin/nodejs\" \"/home/jchukwum/npm/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /home/jchukwum/projects/bill/mean/node_modules/bufferutil\r\ngyp ERR! node -v v4.2.2\r\ngyp ERR! node-gyp -v v3.0.3\r\ngyp ERR! not ok\r\nnpm WARN install:bufferutil@1.2.1 bufferutil@1.2.1 install: `node-gyp rebuild`\r\nnpm WARN install:bufferutil@1.2.1 Exit status 1\r\nIn file included from ../src/bufferutil.cc:16:0:\r\n../../nan/nan.h:261:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’\r\n NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {\r\n                         ^\r\n../../nan/nan.h:256:25: error: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here\r\n NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {\r\n                         ^\r\n../../nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared\r\n     , node::smalloc::FreeCallback callback\r\n             ^\r\n../../nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’\r\n     , node::smalloc::FreeCallback callback\r\n                                   ^\r\n../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:\r\n../../nan/nan.h:665:50: error: ‘callback’ was not declared in this scope\r\n         v8::Isolate::GetCurrent(), data, length, callback, hint);\r\n                                                  ^\r\n../../nan/nan.h:665:60: error: ‘hint’ was not declared in this scope\r\n         v8::Isolate::GetCurrent(), data, length, callback, hint);\r\n                                                            ^\r\n../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:\r\n../../nan/nan.h:672:67: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous\r\n     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);\r\n                                                                   ^\r\n../../nan/nan.h:672:67: note: candidates are:\r\nIn file included from ../src/bufferutil.cc:10:0:\r\n/home/jchukwum/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\n/home/jchukwum/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note:   no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’\r\n/home/jchukwum/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\n/home/jchukwum/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note:   no known conversion for argument 2 from ‘const char*’ to ‘char*’\r\nIn file included from ../src/bufferutil.cc:16:0:\r\n../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:\r\n../../nan/nan.h:676:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’\r\n     return node::Buffer::New(v8::Isolate::GetCurrent(), size);\r\n                                                             ^\r\n../../nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:\r\n../../nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’\r\n     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);\r\n            ^\r\nmake: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/home/jchukwum/npm/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)\r\ngyp ERR! stack     at emitTwo (events.js:87:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\r\ngyp ERR! System Linux 3.8.0-44-generic\r\ngyp ERR! command \"/usr/bin/nodejs\" \"/home/jchukwum/npm/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /home/jchukwum/projects/bill/mean/node_modules/node-inspector/node_modules/bufferutil\r\ngyp ERR! node -v v4.2.2\r\ngyp ERR! node-gyp -v v3.0.3\r\ngyp ERR! not ok"}}