atom-archive / node-runas

Run command synchronously (with Administrator privilege)
MIT License
47 stars 20 forks source link

apm install fails because of runas #11

Closed philipgiuliani closed 6 years ago

philipgiuliani commented 10 years ago

Im currently trying to run apm install on my own package. The Dependency im triying to install is pathwatcher

"dependencies": {
    "pathwatcher": "2.0.6"
}

Versions:

apm  0.83.0
npm  1.4.4
node 0.10.26
python 2.7.5
git 1.8.5.2

Log:

> runas@1.0.1 install .../coverage/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

  CXX(target) Release/obj.target/runas/src/main.o

npm http GET https://registry.npmjs.org/pathwatcher/2.0.6
npm http 304 https://registry.npmjs.org/pathwatcher/2.0.6
npm http GET https://registry.npmjs.org/nan/1.2.0
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/runas
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/nan/1.2.0
npm http 304 https://registry.npmjs.org/fs-plus
npm http 304 https://registry.npmjs.org/runas
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
In file included from ../src/main.cc:1:
../../nan/nan.h:342:74: error: too many arguments to function call, expected at most 3, have 4
    return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
           ~~~~~~~~~~~~~~~~~~                                            ^~~~
/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:3550:3: note: 'New' declared here
  static Local<Signature> New(Handle<FunctionTemplate> receiver =
  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:370:27: error: cannot initialize a parameter of type 'int' with an rvalue of type 'v8::Isolate *'
    return v8::Array::New(v8::Isolate::GetCurrent());
                          ^~~~~~~~~~~~~~~~~~~~~~~~~
/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2307:31: note: passing argument to parameter 'length' here
  static Local<Array> New(int length = 0);
                              ^
In file included from ../src/main.cc:1:
../../nan/nan.h:375:54: error: too many arguments to function call, expected at most single argument 'length', have 2 arguments
    return v8::Array::New(v8::Isolate::GetCurrent(), length);
           ~~~~~~~~~~~~~~                            ^~~~~~
/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2307:3: note: 'New' declared here
  static Local<Array> New(int length = 0);
  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:380:53: error: too many arguments to function call, expected single argument 'time', have 2 arguments
    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();
           ~~~~~~~~~~~~~                            ^~~~
/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2831:3: note: 'New' declared here
  static Local<Value> New(double time);
  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:380:70: error: expected '(' for function-style cast or type construction
    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();
                                                             ~~~~~~~~^
../../nan/nan.h:380:72: error: expected expression
    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();
                                                                       ^
../../nan/nan.h:385:53: error: too many arguments to function call, expected single argument 'time', have 2 arguments
    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();
           ~~~~~~~~~~~~~                            ^~~~
/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2831:3: note: 'New' declared here
  static Local<Value> New(double time);
  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:385:70: error: expected '(' for function-style cast or type construction
    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();
                                                             ~~~~~~~~^
../../nan/nan.h:385:72: error: expected expression
    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();
                                                                       ^
../../nan/nan.h:388:15: error: no type named 'UnboundScript' in namespace 'v8'
  typedef v8::UnboundScript NanUnboundScript;
          ~~~~^
../../nan/nan.h:396:9: error: no member named 'ScriptCompiler' in namespace 'v8'
    v8::ScriptCompiler::Source source(s, origin);
    ~~~~^
../../nan/nan.h:397:16: error: no member named 'ScriptCompiler' in namespace 'v8'
    return v8::ScriptCompiler::CompileUnbound(
           ~~~~^
../../nan/nan.h:398:37: error: use of undeclared identifier 'source'; did you mean 'v8::Extension::source'?
        v8::Isolate::GetCurrent(), &source);
                                    ^~~~~~
                                    v8::Extension::source
/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:3677:46: note: 'v8::Extension::source' declared here
  const String::ExternalAsciiStringResource* source() const {
                                             ^
In file included from ../src/main.cc:1:
../../nan/nan.h:398:36: error: must explicitly qualify name of member function when taking its address
        v8::Isolate::GetCurrent(), &source);
                                   ^~~~~~~
                                    Extension::
../../nan/nan.h:405:9: error: no member named 'ScriptCompiler' in namespace 'v8'
    v8::ScriptCompiler::Source source(s);
    ~~~~^
../../nan/nan.h:406:16: error: no member named 'ScriptCompiler' in namespace 'v8'
    return v8::ScriptCompiler::CompileUnbound(
           ~~~~^
../../nan/nan.h:407:37: error: use of undeclared identifier 'source'; did you mean 'v8::Extension::source'?
        v8::Isolate::GetCurrent(), &source);
                                    ^~~~~~
                                    v8::Extension::source
/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:3677:46: note: 'v8::Extension::source' declared here
  const String::ExternalAsciiStringResource* source() const {
                                             ^
In file included from ../src/main.cc:1:
../../nan/nan.h:407:36: error: must explicitly qualify name of member function when taking its address
        v8::Isolate::GetCurrent(), &source);
                                   ^~~~~~~
                                    Extension::
../../nan/nan.h:432:36: error: too many arguments to function call, expected single argument 'value', have 2 arguments
        v8::Isolate::GetCurrent(), val).As<v8::NumberObject>();
                                   ^~~
/myfolder/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2869:3: note: 'New' declared here
  static Local<Value> New(double value);
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/runas/src/main.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp 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)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Darwin 13.3.0
gyp 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"
gyp ERR! cwd /myfolder/Documents/Projekte/coverage/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/property-accessors
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/myfolder/Documents/Projekte/coverage/node_modules/pathwatcher/node_modules'
npm ERR! error rolling back  pathwatcher@2.0.6 { [Error: ENOTEMPTY, rmdir '/myfolder/Documents/Projekte/coverage/node_modules/pathwatcher/node_modules']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/myfolder/Documents/Projekte/coverage/node_modules/pathwatcher/node_modules' }
npm ERR! runas@1.0.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the runas@1.0.1 install script.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.3.0
npm 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"
npm ERR! cwd /myfolder/Documents/Projekte/coverage
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /myfolder/Documents/Projekte/coverage/npm-debug.log
npm ERR! not ok code 0
Glavin001 commented 10 years ago

+1, happening for me, too! Identical error message. Working on https://github.com/Glavin001/atom-preview/tree/use-atoms-react-editor-view

$ apm stars --install
Installing Sublime-Style-Column-Selection to /Users/glavin/.atom/packages ✓
Installing Tern to /Users/glavin/.atom/packages ✓
Installing apm-publish to /Users/glavin/.atom/packages ✓
Installing ask-stack to /Users/glavin/.atom/packages ✓
Installing atom-beautifier to /Users/glavin/.atom/packages ✓
Installing atom-beautify to /Users/glavin/.atom/packages ✓
Installing atom-color-highlight to /Users/glavin/.atom/packages ✓
Installing atom-handlebars to /Users/glavin/.atom/packages ✓
Installing atom-lint to /Users/glavin/.atom/packages ✓
Installing atomatigit to /Users/glavin/.atom/packages ✓
Installing autocomplete-paths to /Users/glavin/.atom/packages ✓
Installing autocomplete-plus to /Users/glavin/.atom/packages ✓
Installing bezier-curve-editor to /Users/glavin/.atom/packages ✓
Installing break to /Users/glavin/.atom/packages ✓
Installing coffee-refactor to /Users/glavin/.atom/packages ✓
Installing coffeescript-preview to /Users/glavin/.atom/packages ✓
Installing color-picker to /Users/glavin/.atom/packages ✓
Installing emmet to /Users/glavin/.atom/packages ✓
Installing file-icons to /Users/glavin/.atom/packages ✓
Installing filetype-color to /Users/glavin/.atom/packages ✓
Installing find-and-replace to /Users/glavin/.atom/packages ✓
Installing firepad to /Users/glavin/.atom/packages ✓
Installing git-blame to /Users/glavin/.atom/packages ✓
Installing git-diff to /Users/glavin/.atom/packages ✓
Installing git-plus to /Users/glavin/.atom/packages ✓
Installing gitignore-snippets to /Users/glavin/.atom/packages ✓
Installing gitter to /Users/glavin/.atom/packages ✓
Installing iTunes to /Users/glavin/.atom/packages ✓
Installing jshint to /Users/glavin/.atom/packages ✓
Installing keybinding-resolver to /Users/glavin/.atom/packages ✓
Installing language-jade to /Users/glavin/.atom/packages ✓
Installing language-swift to /Users/glavin/.atom/packages ✓
Installing language-typescript to /Users/glavin/.atom/packages ✓
Installing linter to /Users/glavin/.atom/packages ✓
Installing linter-coffeelint to /Users/glavin/.atom/packages ✓
Installing linter-csslint to /Users/glavin/.atom/packages ✓
Installing linter-jshint to /Users/glavin/.atom/packages ✓
Installing linter-pylint to /Users/glavin/.atom/packages ✓
Installing linter-scss-lint to /Users/glavin/.atom/packages ✓
Installing makro to /Users/glavin/.atom/packages ✓
Installing markdown-preview to /Users/glavin/.atom/packages ✗

> runas@1.0.1 install /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

  CXX(target) Release/obj.target/runas/src/main.o

npm http GET https://registry.npmjs.org/pathwatcher
npm http GET https://registry.npmjs.org/temp
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/roaster
npm http GET https://registry.npmjs.org/wrench
npm http GET https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/highlights/0.13.0
npm http GET https://registry.npmjs.org/cheerio/0.15.0
npm http 304 https://registry.npmjs.org/wrench
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/temp
npm http 304 https://registry.npmjs.org/roaster
npm http 304 https://registry.npmjs.org/fs-plus
npm http 304 https://registry.npmjs.org/cheerio/0.15.0
npm http 304 https://registry.npmjs.org/highlights/0.13.0
npm http 304 https://registry.npmjs.org/pathwatcher
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/task-lists/0.1.3
npm http GET https://registry.npmjs.org/underscore/1.6.0
npm http GET https://registry.npmjs.org/js-yaml/3.1.0
npm http GET https://registry.npmjs.org/marked/0.3.1
npm http GET https://registry.npmjs.org/emoji-images/0.0.2
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/osenv/0.0.3
npm http GET https://registry.npmjs.org/nan/1.2.0
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/runas
npm http 304 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/htmlparser2
npm http GET https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/CSSselect
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/first-mate
npm http 304 https://registry.npmjs.org/js-yaml/3.1.0
npm http 304 https://registry.npmjs.org/emoji-images/0.0.2
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/task-lists/0.1.3
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/osenv/0.0.3
npm http 304 https://registry.npmjs.org/nan/1.2.0
npm http 304 https://registry.npmjs.org/underscore/1.6.0
npm http 304 https://registry.npmjs.org/htmlparser2
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/marked/0.3.1
npm http 304 https://registry.npmjs.org/CSSselect
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/entities
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/runas
npm http 304 https://registry.npmjs.org/first-mate
2014-08-09 06:11:15.143 xcodebuild[87660:1007] [MT] PluginLoading: Required plug-in compatibility UUID A2E4D43F-41F4-4FB9-BB94-7177011C9AED for plug-in at path '/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XToDo.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2014-08-09 06:11:15.144 xcodebuild[87660:1007] [MT] PluginLoading: Required plug-in compatibility UUID A2E4D43F-41F4-4FB9-BB94-7177011C9AED for plug-in at path '/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XAlign.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2014-08-09 06:11:15.145 xcodebuild[87660:1007] [MT] PluginLoading: Required plug-in compatibility UUID A2E4D43F-41F4-4FB9-BB94-7177011C9AED for plug-in at path '/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SCXcodeMinimap.xcplugin' not present in DVTPlugInCompatibilityUUIDs
In file included from ../src/main.cc:1:
../../nan/nan.h:342:74: error: too many arguments to function call, expected at most 3, have 4
    return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
           ~~~~~~~~~~~~~~~~~~                                            ^~~~
/Users/glavin/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:3550:3: note: 'New' declared here
  static Local<Signature> New(Handle<FunctionTemplate> receiver =
  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:370:27: error: cannot initialize a parameter of type 'int' with an rvalue of type 'v8::Isolate *'
    return v8::Array::New(v8::Isolate::GetCurrent());
                          ^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/glavin/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2307:31: note: passing argument to parameter 'length' here
  static Local<Array> New(int length = 0);
                              ^
In file included from ../src/main.cc:1:
../../nan/nan.h:375:54: error: too many arguments to function call, expected at most single argument 'length', have 2 arguments
    return v8::Array::New(v8::Isolate::GetCurrent(), length);
           ~~~~~~~~~~~~~~                            ^~~~~~
/Users/glavin/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2307:3: note: 'New' declared here
  static Local<Array> New(int length = 0);
  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:380:53: error: too many arguments to function call, expected single argument 'time', have 2 arguments
    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();
           ~~~~~~~~~~~~~                            ^~~~
/Users/glavin/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2831:3: note: 'New' declared here
  static Local<Value> New(double time);
  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:380:70: error: expected '(' for function-style cast or type construction
    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();
                                                             ~~~~~~~~^
../../nan/nan.h:380:72: error: expected expression
    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();
                                                                       ^
../../nan/nan.h:385:53: error: too many arguments to function call, expected single argument 'time', have 2 arguments
    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();
           ~~~~~~~~~~~~~                            ^~~~
/Users/glavin/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2831:3: note: 'New' declared here
  static Local<Value> New(double time);
  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:385:70: error: expected '(' for function-style cast or type construction
    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();
                                                             ~~~~~~~~^
../../nan/nan.h:385:72: error: expected expression
    return v8::Date::New(v8::Isolate::GetCurrent(), time).As<v8::Date>();
                                                                       ^
../../nan/nan.h:388:15: error: no type named 'UnboundScript' in namespace 'v8'
  typedef v8::UnboundScript NanUnboundScript;
          ~~~~^
../../nan/nan.h:396:9: error: no member named 'ScriptCompiler' in namespace 'v8'
    v8::ScriptCompiler::Source source(s, origin);
    ~~~~^
../../nan/nan.h:397:16: error: no member named 'ScriptCompiler' in namespace 'v8'
    return v8::ScriptCompiler::CompileUnbound(
           ~~~~^
../../nan/nan.h:398:37: error: use of undeclared identifier 'source'; did you mean 'v8::Extension::source'?
        v8::Isolate::GetCurrent(), &source);
                                    ^~~~~~
                                    v8::Extension::source
/Users/glavin/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:3677:46: note: 'v8::Extension::source' declared here
  const String::ExternalAsciiStringResource* source() const {
                                             ^
In file included from ../src/main.cc:1:
../../nan/nan.h:398:36: error: must explicitly qualify name of member function when taking its address
        v8::Isolate::GetCurrent(), &source);
                                   ^~~~~~~
                                    Extension::
../../nan/nan.h:405:9: error: no member named 'ScriptCompiler' in namespace 'v8'
    v8::ScriptCompiler::Source source(s);
    ~~~~^
../../nan/nan.h:406:16: error: no member named 'ScriptCompiler' in namespace 'v8'
    return v8::ScriptCompiler::CompileUnbound(
           ~~~~^
../../nan/nan.h:407:37: error: use of undeclared identifier 'source'; did you mean 'v8::Extension::source'?
        v8::Isolate::GetCurrent(), &source);
                                    ^~~~~~
                                    v8::Extension::source
/Users/glavin/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:3677:46: note: 'v8::Extension::source' declared here
  const String::ExternalAsciiStringResource* source() const {
                                             ^
In file included from ../src/main.cc:1:
../../nan/nan.h:407:36: error: must explicitly qualify name of member function when taking its address
        v8::Isolate::GetCurrent(), &source);
                                   ^~~~~~~
                                    Extension::
../../nan/nan.h:432:36: error: too many arguments to function call, expected single argument 'value', have 2 arguments
        v8::Isolate::GetCurrent(), val).As<v8::NumberObject>();
                                   ^~~
/Users/glavin/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2869:3: note: 'New' declared here
  static Local<Value> New(double value);
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/runas/src/main.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp 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)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Darwin 13.2.0
gyp 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"
gyp ERR! cwd /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/domhandler
npm http GET https://registry.npmjs.org/domutils
npm http GET https://registry.npmjs.org/domelementtype
npm http GET https://registry.npmjs.org/esprima
npm http GET https://registry.npmjs.org/argparse
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/domutils
npm http GET https://registry.npmjs.org/CSSwhat
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/minimist
npm http 304 https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/season
npm http GET https://registry.npmjs.org/oniguruma
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/esprima
npm http 304 https://registry.npmjs.org/domelementtype
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/argparse
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/domutils
npm http 304 https://registry.npmjs.org/domutils
npm http 304 https://registry.npmjs.org/CSSwhat
npm http 304 https://registry.npmjs.org/domhandler
npm http 304 https://registry.npmjs.org/minimist
npm http 304 https://registry.npmjs.org/oniguruma
npm http 304 https://registry.npmjs.org/season
npm http GET https://registry.npmjs.org/string_decoder
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/isarray/0.0.1
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/isarray/0.0.1
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/underscore.string
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/roaster/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test'
npm ERR! error rolling back  markdown-preview@0.99.0 { [Error: ENOTEMPTY, rmdir '/private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/roaster/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/roaster/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test' }
npm ERR! runas@1.0.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the runas@1.0.1 install script.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.2.0
npm 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" "/Users/glavin/.atom/.apmrc" "install" "/Users/glavin/.atom/.node-gyp/.atom/.apm/markdown-preview/0.99.0/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR! Error: ENOENT, lstat '/private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/highlights/node_modules/first-mate/node_modules/season/node_modules/coffee-script/lib/coffee-script/rewriter.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.2.0
npm 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" "/Users/glavin/.atom/.apmrc" "install" "/Users/glavin/.atom/.node-gyp/.atom/.apm/markdown-preview/0.99.0/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! path /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/highlights/node_modules/first-mate/node_modules/season/node_modules/coffee-script/lib/coffee-script/rewriter.js
npm ERR! fstream_path /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/highlights/node_modules/first-mate/node_modules/season/node_modules/coffee-script/lib/coffee-script/rewriter.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/roaster/node_modules/js-yaml/node_modules/esprima/test/test.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.2.0
npm 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" "/Users/glavin/.atom/.apmrc" "install" "/Users/glavin/.atom/.node-gyp/.atom/.apm/markdown-preview/0.99.0/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! path /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/roaster/node_modules/js-yaml/node_modules/esprima/test/test.js
npm ERR! fstream_path /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/roaster/node_modules/js-yaml/node_modules/esprima/test/test.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/roaster/node_modules/emoji-images/json/objects.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.2.0
npm 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" "/Users/glavin/.atom/.apmrc" "install" "/Users/glavin/.atom/.node-gyp/.atom/.apm/markdown-preview/0.99.0/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! path /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/roaster/node_modules/emoji-images/json/objects.json
npm ERR! fstream_path /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/roaster/node_modules/emoji-images/json/objects.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma/deps/onig/configure'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.2.0
npm 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" "/Users/glavin/.atom/.apmrc" "install" "/Users/glavin/.atom/.node-gyp/.atom/.apm/markdown-preview/0.99.0/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! path /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma/deps/onig/configure
npm ERR! fstream_path /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/node_modules/markdown-preview/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma/deps/onig/configure
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-11479-84172-aonlr5/npm-debug.log
npm ERR! not ok code 0
jnunemaker commented 10 years ago

Happening for me as well.

magandrez commented 10 years ago

Hi, I have the same problem when trying to install an Atom package to hack on it. This is the error part of the verbose debug from npm:

5559 error runas@0.5.4 install: `node-gyp rebuild`
5559 error Exit status 1
5560 error Failed at the runas@0.5.4 install script.
5560 error This is most likely a problem with the runas package,
5560 error not with npm itself.
5560 error Tell the author that this fails on your system:
5560 error     node-gyp rebuild
5560 error You can get their info via:
5560 error     npm owner ls runas
5560 error There is likely additional logging output above.
5561 error System Darwin 13.3.0
5562 error 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" "/Users/Manuel/.atom/.apmrc" "install" "--target=0.16.0" "--arch=x64"
5563 error cwd /Users/Manuel/github/Proton-IDE
5564 error node -v v0.10.30
5565 error npm -v 1.4.4
5566 error code ELIFECYCLE
5567 verbose exit [ 1, true ]

The package I was trying to install is this: https://github.com/haggy/Proton-IDE

magandrez commented 10 years ago

Hi @zcbenz @kevinsawicki Any updates on this one?

mark-hahn commented 9 years ago

I've got this also when trying to install markdown-preview-plus.

Ubuntu 12.04.5 LTS apm 0.157.0 npm 2.5.1 node 0.10.35 python 2.7.3 git 1.7.9.5

min)root@localhost:~# sudo apm install markdown-preview-plus
Installing markdown-preview-plus to /root/.atom/packages ✗

> runas@2.0.0 install /tmp/apm-install-dir-115315-12391-1pmrui7/node_modules/markdown-preview-plus/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

> oniguruma@4.2.0 install /tmp/apm-install-dir-115315-12391-1pmrui7/node_modules/markdown-preview-plus/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma
> node-gyp rebuild

gyp ERR! build error 
gyp ERR! stack Error: not found: make
gyp ERR! stack     at F (/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/which/which.js:38:28)
gyp ERR! stack     at E (/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/which/which.js:41:29)
gyp ERR! stack     at /usr/share/atom/resources/app/apm/node_modules/npm/node_modules/which/which.js:52:16
gyp ERR! stack     at Object.oncomplete (fs.js:108:15)
gyp ERR! System Linux 3.14.0
gyp ERR! command "node" "/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-115315-12391-1pmrui7/node_modules/markdown-preview-plus/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 
gyp ERR! build error 
gyp ERR! stack Error: not found: make
gyp ERR! stack     at F (/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/which/which.js:38:28)
gyp ERR! stack     at E (/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/which/which.js:41:29)
gyp ERR! stack     at /usr/share/atom/resources/app/apm/node_modules/npm/node_modules/which/which.js:52:16
gyp ERR! stack     at Object.oncomplete (fs.js:108:15)
gyp ERR! System Linux 3.14.0
gyp ERR! command "node" "/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-115315-12391-1pmrui7/node_modules/markdown-preview-plus/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 
npm ERR! Linux 3.14.0
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/root/.atom/.apm/.apmrc" "--userconfig" "/root/.atom/.apmrc" "install" "/tmp/d-115315-12391-kzvtf2/package.tgz" "--target=0.22.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! runas@2.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the runas@2.0.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-115315-12391-1pmrui7/npm-debug.log
thomasjo commented 9 years ago

@mark-hahn You have a different issues. You have no make support; see the log output

gyp ERR! stack Error: not found: make

Make sure you've got your Ubuntu distro setup with proper devtools.

thomasjo commented 9 years ago

@philipgiuliani @Glavin001 Are either if you able to reproduce your problem? If not, I'm going to close this one.

Glavin001 commented 9 years ago

I believe I'm still having issues:

$ apm stars --install
Installing Sublime-Style-Column-Selection to /Users/glavin/.atom/packages ✓
Installing Tern to /Users/glavin/.atom/packages ✓
Installing angularjs to /Users/glavin/.atom/packages ✓
Installing apm-publish to /Users/glavin/.atom/packages ✓
Installing ask-stack to /Users/glavin/.atom/packages ✓
Installing atom-beautifier to /Users/glavin/.atom/packages ✓
Installing atom-beautify to /Users/glavin/.atom/packages ✓
Installing atom-color-highlight to /Users/glavin/.atom/packages ✓
Installing atom-handlebars to /Users/glavin/.atom/packages ✓
Installing atom-html-preview to /Users/glavin/.atom/packages ✓
Installing atom-lint to /Users/glavin/.atom/packages ✓
Installing atomatigit to /Users/glavin/.atom/packages ✓
Installing autocomplete-jedi to /Users/glavin/.atom/packages ✓
Installing autocomplete-paths to /Users/glavin/.atom/packages ✓
Installing autocomplete-plus to /Users/glavin/.atom/packages ✓
Installing bezier-curve-editor to /Users/glavin/.atom/packages ✓
Installing break to /Users/glavin/.atom/packages ✓
Installing coffee-navigator to /Users/glavin/.atom/packages ✓
Installing coffee-refactor to /Users/glavin/.atom/packages Note: The code generator has deoptimised the styling of "/Users/glavin/.atom/packages/coffee-refactor/vender/coffee-script/lib/coffee-script/nodes.js" as it exceeds the max of "100KB".
Note: The code generator has deoptimised the styling of "/Users/glavin/.atom/packages/coffee-refactor/vender/coffee-script/lib/coffee-script/parser.js" as it exceeds the max of "100KB".
✓
Installing coffee-trace to /Users/glavin/.atom/packages ✓
Installing coffeescript-preview to /Users/glavin/.atom/packages ✓
Installing color-picker to /Users/glavin/.atom/packages ✓
Installing coverage to /Users/glavin/.atom/packages ✓
Installing debugger to /Users/glavin/.atom/packages ✗

> ws@0.4.32 install /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-115316-32075-g0qmqx/node_modules/debugger/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o

> runas@1.1.0 install /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-115316-32075-g0qmqx/node_modules/debugger/node_modules/text-buffer/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

  CXX(target) Release/obj.target/runas/src/main.o

2015-04-16 09:30:07.304 xcodebuild[32413:384044] [MT] PluginLoading: Required plug-in compatibility UUID A16FF353-8441-459E-A50C-B071F53F51B7 for plug-in at path '/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XToDo.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2015-04-16 09:30:07.305 xcodebuild[32413:384044] [MT] PluginLoading: Required plug-in compatibility UUID A16FF353-8441-459E-A50C-B071F53F51B7 for plug-in at path '/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XAlign.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2015-04-16 09:30:07.306 xcodebuild[32413:384044] [MT] PluginLoading: Required plug-in compatibility UUID A16FF353-8441-459E-A50C-B071F53F51B7 for plug-in at path '/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SCXcodeMinimap.xcplugin' not present in DVTPlugInCompatibilityUUIDs
In file included from ../src/main.cc:1:
../../nan/nan.h:623:19: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
      v8::String::ExternalAsciiStringResource *resource) {
      ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                  ExternalStringResource
/Users/glavin/.atom/.node-gyp/.node-gyp/0.22.0/deps/v8/include/v8.h:2017:19: note: 'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:622:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Local<v8::String> NanNew(
                                   ^
../../nan/nan.h:617:36: note: previous definition is here
  NAN_INLINE v8::Local<v8::String> NanNew(
                                   ^
../../nan/nan.h:1993:12: error: no member named 'IsExternalAscii' in 'v8::String'; did you mean 'IsExternal'?
  if (str->IsExternalAscii()) {
           ^~~~~~~~~~~~~~~
           IsExternal
/Users/glavin/.atom/.node-gyp/.node-gyp/0.22.0/deps/v8/include/v8.h:1981:8: note: 'IsExternal' declared here
  bool IsExternal() const;
       ^
In file included from ../src/main.cc:1:
../../nan/nan.h:1994:23: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
    const v8::String::ExternalAsciiStringResource* ext;
          ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                      ExternalStringResource
/Users/glavin/.atom/.node-gyp/.node-gyp/0.22.0/deps/v8/include/v8.h:2017:19: note: 'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:1995:16: error: no member named 'GetExternalAsciiStringResource' in 'v8::String'; did you mean 'GetExternalOneByteStringResource'?
    ext = str->GetExternalAsciiStringResource();
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               GetExternalOneByteStringResource
/Users/glavin/.atom/.node-gyp/.node-gyp/0.22.0/deps/v8/include/v8.h:2084:40: note: 'GetExternalOneByteStringResource' declared here
  const ExternalOneByteStringResource* GetExternalOneByteStringResource() const;
                                       ^
In file included from ../src/main.cc:1:
../../nan/nan.h:1995:9: error: assigning to 'const v8::String::ExternalStringResource *' from incompatible type 'const v8::String::ExternalOneByteStringResource *'
    ext = str->GetExternalAsciiStringResource();
        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:1996:11: error: assigning to 'const char *' from incompatible type 'const uint16_t *' (aka 'const unsigned short *')
    *data = ext->data();
          ^ ~~~~~~~~~~~
7 errors generated.
make: *** [Release/obj.target/runas/src/main.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 14.1.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-115316-32075-g0qmqx/node_modules/debugger/node_modules/text-buffer/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 
npm ERR! Darwin 14.1.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/glavin/.atom/.apm/.apmrc" "--userconfig" "/Users/glavin/.atom/.apmrc" "install" "/private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/d-115316-32075-j8nbpp/package.tgz" "--target=0.22.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! runas@1.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the runas@1.1.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/lw/ct2vyvzs04gd_l8bn8794t800000gn/T/apm-install-dir-115316-32075-g0qmqx/npm-debug.log

My versions:

$ apm -v
apm  0.157.0
npm  2.5.1
node 0.10.35
python 2.7.3
git 1.8.3.1
mark-hahn commented 9 years ago

Make sure you've got your Ubuntu distro setup with proper devtools.

Thanks. I am new to linux.

I know you have better things to do than give linux support to newbies but can you take one more look at this? I have done these installs ...

sudo apt-get install make
sudo apt-get install build-essential
sudo apt-get install libicu-dev

I am still getting this unreadable blob of errors for runas. It starts right off with configure error so that makes me believe it is an installer problem.

Then I see gyp ERR! stack Error: EACCES, mkdir '/tmp/apm-install-dir-115316-14588-urvmk8/node_modules/markdown-preview-plus/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma/build' which makes me think it is a permission problem. But when I tried sudo mkdir -p '/tmp/apm-install-dir-115316-14588-urvmk8/node_modules/markdown-preview- plus/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma/build' it worked fine.

I went through the blob carefully looking for obvious things like the missing make you found but I found nothing.

sudo apm install markdown-preview-plus
Installing markdown-preview-plus to /home/mark/.atom/packages ✗

> runas@2.0.0 install /tmp/apm-install-dir-115316-14588-urvmk8/node_modules/markdown-preview-plus/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

> oniguruma@4.2.0 install /tmp/apm-install-dir-115316-14588-urvmk8/node_modules/markdown-preview-plus/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma
> node-gyp rebuild

gyp ERR! configure error 
gyp ERR! stack Error: EACCES, mkdir '/tmp/apm-install-dir-115316-14588-urvmk8/node_modules/markdown-preview-plus/node_modules/pathwatcher/node_modules/runas/build'
gyp ERR! System Linux 3.14.0
gyp ERR! command "node" "/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-115316-14588-urvmk8/node_modules/markdown-preview-plus/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 
gyp ERR! configure error 
gyp ERR! stack Error: EACCES, mkdir '/tmp/apm-install-dir-115316-14588-urvmk8/node_modules/markdown-preview-plus/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma/build'
gyp ERR! System Linux 3.14.0
gyp ERR! command "node" "/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-115316-14588-urvmk8/node_modules/markdown-preview-plus/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 
npm ERR! Linux 3.14.0
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/mark/.atom/.apm/.apmrc" "--userconfig" "/home/mark/.atom/.apmrc" "install" "/tmp/d-115316-14588-1gkdkyt/package.tgz" "--target=0.22.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! runas@2.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the runas@2.0.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-115316-14588-urvmk8/npm-debug.log
samu commented 9 years ago

Same problem here :disappointed:

matthewbauer commented 9 years ago

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.

ryanpcmcquen commented 9 years ago

I believe this same bug is keeping me from building atom 1.0.7 from source:

35001 silly gentlyRm /tmp/SBo/atom-1.0.7/build/node_modules/.bin/minidump_stackwalk is being purged
35002 verbose gentlyRm don't care about contents; nuking /tmp/SBo/atom-1.0.7/build/node_modules/.bin/minidump_stackwalk
35003 info install minidump@0.9.0
35004 verbose unsafe-perm in lifecycle false
35005 info postinstall minidump@0.9.0
35006 verbose unlock done using /root/.atom/.npm/_locks/minidump-d6607799744ecc21.lock for /tmp/SBo/atom-1.0.7/build/node_modules/minidump
35007 verbose stack Error: runas@2.0.0 install: `node-gyp rebuild`
35007 verbose stack Exit status 1
35007 verbose stack     at EventEmitter.<anonymous> (/usr/lib64/node_modules/npm/lib/utils/lifecycle.js:214:16)
35007 verbose stack     at emitTwo (events.js:87:13)
35007 verbose stack     at EventEmitter.emit (events.js:172:7)
35007 verbose stack     at ChildProcess.<anonymous> (/usr/lib64/node_modules/npm/lib/utils/spawn.js:24:14)
35007 verbose stack     at emitTwo (events.js:87:13)
35007 verbose stack     at ChildProcess.emit (events.js:172:7)
35007 verbose stack     at maybeClose (internal/child_process.js:764:16)
35007 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
35008 verbose pkgid runas@2.0.0
35009 verbose cwd /tmp/SBo/atom-1.0.7/build
35010 error Linux 4.1.5
35011 error argv "/usr/bin/iojs" "/usr/bin/npm" "--userconfig=/tmp/SBo/atom-1.0.7/build/.npmrc" "install" "--loglevel" "error"
35012 error node v3.0.0
35013 error npm  v2.13.3
35014 error code ELIFECYCLE
35015 error runas@2.0.0 install: `node-gyp rebuild`
35015 error Exit status 1
35016 error Failed at the runas@2.0.0 install script 'node-gyp rebuild'.
35016 error This is most likely a problem with the runas package,
35016 error not with npm itself.
35016 error Tell the author that this fails on your system:
35016 error     node-gyp rebuild
35016 error You can get their info via:
35016 error     npm owner ls runas
35016 error There is likely additional logging output above.
35017 verbose exit [ 1, true ]
35018 verbose unbuild node_modules/runas
35019 info preuninstall runas@2.0.0
35020 info uninstall runas@2.0.0
35021 verbose unbuild rmStuff runas@2.0.0 from /tmp/SBo/atom-1.0.7/build/node_modules
35022 info postuninstall runas@2.0.0
35023 silly gentlyRm /tmp/SBo/atom-1.0.7/build/node_modules/runas is being purged from base /tmp/SBo/atom-1.0.7/build
35024 verbose gentlyRm don't care about contents; nuking /tmp/SBo/atom-1.0.7/build/node_modules/runas
35025 silly vacuum-fs purging /tmp/SBo/atom-1.0.7/build/node_modules/runas
35026 silly vacuum-fs quitting because other entries in /tmp/SBo/atom-1.0.7/build/node_modules

In case I truncated the log too much, the full version is here: https://gist.github.com/ryanpcmcquen/983386e33aa68ac3f62d

torokze commented 9 years ago

Issue during building Electron (Mac OS X 10.10.5, Xcode 5.1.1):

gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Darwin 14.5.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Volumes/WorkMacWork/Work/electron-compile-test/node_modules/runas gyp ERR! node -v v4.1.0 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok npm verb unsafe-perm in lifecycle true npm info runas@3.1.0 Failed to exec install script npm verb unlock done using /Users/zolee/.npm/_locks/runas-233b6b19b08ead18.lock for /Volumes/WorkMacWork/Work/electron-compile-test/node_modules/runas npm verb stack Error: runas@3.1.0 install: node-gyp rebuild npm verb stack Exit status 1 npm verb stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214:16) npm verb stack at emitTwo (events.js:87:13) npm verb stack at EventEmitter.emit (events.js:172:7) npm verb stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14) npm verb stack at emitTwo (events.js:87:13) npm verb stack at ChildProcess.emit (events.js:172:7) npm verb stack at maybeClose (internal/child_process.js:817:16) npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) npm verb pkgid runas@3.1.0 npm verb cwd /Volumes/WorkMacWork/Work/electron-compile-test npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--verbose" npm ERR! node v4.1.0 npm ERR! npm v2.14.3 npm ERR! code ELIFECYCLE

npm ERR! runas@3.1.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the runas@3.1.0 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the runas package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls runas npm ERR! There is likely additional logging output above. npm verb exit [ 1, true ] npm verb unbuild node_modules/runas npm info preuninstall runas@3.1.0 npm info uninstall runas@3.1.0 npm verb unbuild rmStuff runas@3.1.0 from /Volumes/WorkMacWork/Work/electron-compile-test/node_modules npm info postuninstall runas@3.1.0 npm verb gentlyRm don't care about contents; nuking /Volumes/WorkMacWork/Work/electron-compile-test/node_modules/runas

npm ERR! Please include the following file with any support request: npm ERR! /Volumes/WorkMacWork/Work/electron-compile-test/npm-debug.log

How can I submit the log file?

tairun commented 9 years ago

Got an error for package https://github.com/jcpetkovich/atom-shrink-whitespace. See issue there: jcpetkovich/atom-shrink-whitespace/issues/1

gnestor commented 8 years ago

Same issue when trying to install atom-notebook using Atom 1.2.2.

gnestor commented 8 years ago

I was able to fix this by bumping the version of pathwatcher (which depends on runas) to its current version in the atom-notebook's package.json. It was trying to build with an old version of pathwatcher and runas that were not compatible with Node >=4.

babycamel commented 6 years ago

I received this error using latest version of npm while trying to install the Jupyter notebook extension for Atom. the erro says the issue is with runas:

npm ERR! runas@3.1.1 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the runas@3.1.1 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the runas package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs runas npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls runas npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /private/var/folders/_5/v3zww19s39q62xv23p9wxk1m0000gn/T/apm-install-dir-1171020-59303-a8bky9.9vsra4i/npm-debug.log npm ERR! code 1

gnestor commented 6 years ago

@babycamel The atom-notebook extension is currently broken and not being maintained. I recommend that you checkout nteract which is a new Jupyter notebook client that is built on Electron (the same native app shell that Atom uses), so it has many of the benefits of atom-notebook (native app feel, double click to open .ipynb files, etc.). Once nteract has been successfully ported over to a web app, we will try updating atom-notebook to use the nteract modules.

babycamel commented 6 years ago

Thanks will check it out.

lee-dohm commented 6 years ago

All repositories in the atom-archive organization are unmaintained and deprecated. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!