{"action":"created","issue":{"url":"https://api.github.com/repos/atom/node-runas/issues/11","labels_url":"https://api.github.com/repos/atom/node-runas/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/atom/node-runas/issues/11/comments","events_url":"https://api.github.com/repos/atom/node-runas/issues/11/events","html_url":"https://github.com/atom/node-runas/issues/11","id":39504466,"number":11,"title":"apm install fails because of runas","user":{"login":"philipgiuliani","id":5446019,"avatar_url":"https://avatars.githubusercontent.com/u/5446019?v=3","gravatar_id":"","url":"https://api.github.com/users/philipgiuliani","html_url":"https://github.com/philipgiuliani","followers_url":"https://api.github.com/users/philipgiuliani/followers","following_url":"https://api.github.com/users/philipgiuliani/following{/other_user}","gists_url":"https://api.github.com/users/philipgiuliani/gists{/gist_id}","starred_url":"https://api.github.com/users/philipgiuliani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipgiuliani/subscriptions","organizations_url":"https://api.github.com/users/philipgiuliani/orgs","repos_url":"https://api.github.com/users/philipgiuliani/repos","events_url":"https://api.github.com/users/philipgiuliani/events{/privacy}","received_events_url":"https://api.github.com/users/philipgiuliani/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/node-runas/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-08-05T10:13:38Z","updated_at":"2015-05-16T01:00:55Z","closed_at":null,"body":"Im currently trying to run `apm install` on my own package. The Dependency im triying to install is `pathwatcher`\r\n\r\n```javascript\r\n\"dependencies\": {\r\n    \"pathwatcher\": \"2.0.6\"\r\n}\r\n```\r\n\r\nVersions:\r\n```\r\napm  0.83.0\r\nnpm  1.4.4\r\nnode 0.10.26\r\npython 2.7.5\r\ngit 1.8.5.2\r\n```\r\n\r\nLog:\r\n```\r\n> runas@1.0.1 install .../coverage/node_modules/pathwatcher/node_modules/runas\r\n> node-gyp rebuild\r\n\r\n  CXX(target) Release/obj.target/runas/src/main.o\r\n\r\nnpm http GET https://registry.npmjs.org/pathwatcher/2.0.6\r\nnpm http 304 https://registry.npmjs.org/pathwatcher/2.0.6\r\nnpm http GET https://registry.npmjs.org/nan/1.2.0\r\nnpm http GET https://registry.npmjs.org/q\r\nnpm http GET https://registry.npmjs.org/emissary\r\nnpm http GET https://registry.npmjs.org/async\r\nnpm http GET https://registry.npmjs.org/underscore-plus\r\nnpm http GET https://registry.npmjs.org/fs-plus\r\nnpm http GET https://registry.npmjs.org/runas\r\nnpm http 304 https://registry.npmjs.org/q\r\nnpm http 304 https://registry.npmjs.org/emissary\r\nnpm http 304 https://registry.npmjs.org/async\r\nnpm http 304 https://registry.npmjs.org/underscore-plus\r\nnpm http 304 https://registry.npmjs.org/nan/1.2.0\r\nnpm http 304 https://registry.npmjs.org/fs-plus\r\nnpm http 304 https://registry.npmjs.org/runas\r\nnpm http GET https://registry.npmjs.org/mkdirp\r\nnpm http GET https://registry.npmjs.org/rimraf\r\nnpm http GET https://registry.npmjs.org/underscore\r\nnpm http GET https://registry.npmjs.org/mixto\r\nnpm http GET https://registry.npmjs.org/property-accessors\r\nIn file included from ../src/main.cc:1:\r\n../../nan/nan.h:342:74: error: too many arguments to function call, expected at most 3, have 4\r\n    return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);\r\n           ~~~~~~~~~~~~~~~~~~                                            ^~~~\r\n/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:3550:3: note: 'New' declared here\r\n  static Local<Signature> New(Handle<FunctionTemplate> receiver =\r\n  ^\r\nIn file included from ../src/main.cc:1:\r\n../../nan/nan.h:370:27: error: cannot initialize a parameter of type 'int' with an rvalue of type 'v8::Isolate *'\r\n    return v8::Array::New(v8::Isolate::GetCurrent());\r\n                          ^~~~~~~~~~~~~~~~~~~~~~~~~\r\n/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2307:31: note: passing argument to parameter 'length' here\r\n  static Local<Array> New(int length = 0);\r\n                              ^\r\nIn file included from ../src/main.cc:1:\r\n../../nan/nan.h:375:54: error: too many arguments to function call, expected at most single argument 'length', have 2 arguments\r\n    return v8::Array::New(v8::Isolate::GetCurrent(), length);\r\n           ~~~~~~~~~~~~~~                            ^~~~~~\r\n/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2307:3: note: 'New' declared here\r\n  static Local<Array> New(int length = 0);\r\n  ^\r\nIn file included from ../src/main.cc:1:\r\n../../nan/nan.h:380:53: error: too many arguments to function call, expected single argument 'time', have 2 arguments\r\n    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();\r\n           ~~~~~~~~~~~~~                            ^~~~\r\n/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2831:3: note: 'New' declared here\r\n  static Local<Value> New(double time);\r\n  ^\r\nIn file included from ../src/main.cc:1:\r\n../../nan/nan.h:380:70: error: expected '(' for function-style cast or type construction\r\n    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();\r\n                                                             ~~~~~~~~^\r\n../../nan/nan.h:380:72: error: expected expression\r\n    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();\r\n                                                                       ^\r\n../../nan/nan.h:385:53: error: too many arguments to function call, expected single argument 'time', have 2 arguments\r\n    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();\r\n           ~~~~~~~~~~~~~                            ^~~~\r\n/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2831:3: note: 'New' declared here\r\n  static Local<Value> New(double time);\r\n  ^\r\nIn file included from ../src/main.cc:1:\r\n../../nan/nan.h:385:70: error: expected '(' for function-style cast or type construction\r\n    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();\r\n                                                             ~~~~~~~~^\r\n../../nan/nan.h:385:72: error: expected expression\r\n    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();\r\n                                                                       ^\r\n../../nan/nan.h:388:15: error: no type named 'UnboundScript' in namespace 'v8'\r\n  typedef v8::UnboundScript NanUnboundScript;\r\n          ~~~~^\r\n../../nan/nan.h:396:9: error: no member named 'ScriptCompiler' in namespace 'v8'\r\n    v8::ScriptCompiler::Source source(s, origin);\r\n    ~~~~^\r\n../../nan/nan.h:397:16: error: no member named 'ScriptCompiler' in namespace 'v8'\r\n    return v8::ScriptCompiler::CompileUnbound(\r\n           ~~~~^\r\n../../nan/nan.h:398:37: error: use of undeclared identifier 'source'; did you mean 'v8::Extension::source'?\r\n        v8::Isolate::GetCurrent(), &source);\r\n                                    ^~~~~~\r\n                                    v8::Extension::source\r\n/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:3677:46: note: 'v8::Extension::source' declared here\r\n  const String::ExternalAsciiStringResource* source() const {\r\n                                             ^\r\nIn file included from ../src/main.cc:1:\r\n../../nan/nan.h:398:36: error: must explicitly qualify name of member function when taking its address\r\n        v8::Isolate::GetCurrent(), &source);\r\n                                   ^~~~~~~\r\n                                    Extension::\r\n../../nan/nan.h:405:9: error: no member named 'ScriptCompiler' in namespace 'v8'\r\n    v8::ScriptCompiler::Source source(s);\r\n    ~~~~^\r\n../../nan/nan.h:406:16: error: no member named 'ScriptCompiler' in namespace 'v8'\r\n    return v8::ScriptCompiler::CompileUnbound(\r\n           ~~~~^\r\n../../nan/nan.h:407:37: error: use of undeclared identifier 'source'; did you mean 'v8::Extension::source'?\r\n        v8::Isolate::GetCurrent(), &source);\r\n                                    ^~~~~~\r\n                                    v8::Extension::source\r\n/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:3677:46: note: 'v8::Extension::source' declared here\r\n  const String::ExternalAsciiStringResource* source() const {\r\n                                             ^\r\nIn file included from ../src/main.cc:1:\r\n../../nan/nan.h:407:36: error: must explicitly qualify name of member function when taking its address\r\n        v8::Isolate::GetCurrent(), &source);\r\n                                   ^~~~~~~\r\n                                    Extension::\r\n../../nan/nan.h:432:36: error: too many arguments to function call, expected single argument 'value', have 2 arguments\r\n        v8::Isolate::GetCurrent(), val).As<v8::NumberObject>();\r\n                                   ^~~\r\n/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2869:3: note: 'New' declared here\r\n  static Local<Value> New(double value);\r\n  ^\r\nfatal error: too many errors emitted, stopping now [-ferror-limit=]\r\n20 errors generated.\r\nmake: *** [Release/obj.target/runas/src/main.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 (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)\r\ngyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)\r\ngyp ERR! System Darwin 13.3.0\r\ngyp ERR! command \"node\" \"/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /myfolder/Documents/Projekte/coverage/node_modules/pathwatcher/node_modules/runas\r\ngyp ERR! node -v v0.10.26\r\ngyp ERR! node-gyp -v v0.12.2\r\ngyp ERR! not ok \r\nnpm http 304 https://registry.npmjs.org/mkdirp\r\nnpm http 304 https://registry.npmjs.org/rimraf\r\nnpm http 304 https://registry.npmjs.org/underscore\r\nnpm http 304 https://registry.npmjs.org/mixto\r\nnpm http 304 https://registry.npmjs.org/property-accessors\r\nnpm ERR! error rolling back Error: ENOTEMPTY, rmdir '/myfolder/Documents/Projekte/coverage/node_modules/pathwatcher/node_modules'\r\nnpm ERR! error rolling back  pathwatcher@2.0.6 { [Error: ENOTEMPTY, rmdir '/myfolder/Documents/Projekte/coverage/node_modules/pathwatcher/node_modules']\r\nnpm ERR! error rolling back   errno: 53,\r\nnpm ERR! error rolling back   code: 'ENOTEMPTY',\r\nnpm ERR! error rolling back   path: '/myfolder/Documents/Projekte/coverage/node_modules/pathwatcher/node_modules' }\r\nnpm ERR! runas@1.0.1 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the runas@1.0.1 install script.\r\nnpm ERR! This is most likely a problem with the runas package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls runas\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! System Darwin 13.3.0\r\nnpm ERR! command \"/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node\" \"/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js\" \"--globalconfig\" \"/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc\" \"--userconfig\" \"/myfolder/.atom/.apmrc\" \"install\" \"--target=0.11.10\" \"--arch=x64\"\r\nnpm ERR! cwd /myfolder/Documents/Projekte/coverage\r\nnpm ERR! node -v v0.10.26\r\nnpm ERR! npm -v 1.4.4\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! \r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     /myfolder/Documents/Projekte/coverage/npm-debug.log\r\nnpm ERR! not ok code 0\r\n```"},"comment":{"url":"https://api.github.com/repos/atom/node-runas/issues/comments/102557627","html_url":"https://github.com/atom/node-runas/issues/11#issuecomment-102557627","issue_url":"https://api.github.com/repos/atom/node-runas/issues/11","id":102557627,"user":{"login":"matthewbauer","id":19036,"avatar_url":"https://avatars.githubusercontent.com/u/19036?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewbauer","html_url":"https://github.com/matthewbauer","followers_url":"https://api.github.com/users/matthewbauer/followers","following_url":"https://api.github.com/users/matthewbauer/following{/other_user}","gists_url":"https://api.github.com/users/matthewbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewbauer/subscriptions","organizations_url":"https://api.github.com/users/matthewbauer/orgs","repos_url":"https://api.github.com/users/matthewbauer/repos","events_url":"https://api.github.com/users/matthewbauer/events{/privacy}","received_events_url":"https://api.github.com/users/matthewbauer/received_events","type":"User","site_admin":false},"created_at":"2015-05-16T01:00:55Z","updated_at":"2015-05-16T01:00:55Z","body":"You might want to check where your 'node' cmd is pointing to. For me, it was actually pointing to iojs, causing node-gyp to be unable to get the correct version. Don't know if this is related to the issue but replacing `which node` with the real node file worked for me."}}