lsegal / atom-rst-preview

Open a rendered version of the ReStructuredText in the current editor with `ctrl-shift-r`.
Other
22 stars 80 forks source link

could not install package #3

Closed ilya-klyuchnikov closed 9 years ago

ilya-klyuchnikov commented 10 years ago

for me installation fails with the following detailed message:

> runas@0.5.4 install /private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

npm http GET https://registry.npmjs.org/pathwatcher/0.16.0
npm http GET https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/underscore-plus
npm http 200 https://registry.npmjs.org/fs-plus
npm http 200 https://registry.npmjs.org/underscore-plus
npm http 200 https://registry.npmjs.org/pathwatcher/0.16.0
npm http GET https://registry.npmjs.org/pathwatcher/-/pathwatcher-0.16.0.tgz
npm http 200 https://registry.npmjs.org/pathwatcher/-/pathwatcher-0.16.0.tgz
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/runas
npm http 200 https://registry.npmjs.org/async
npm http 200 https://registry.npmjs.org/rimraf
npm http 200 https://registry.npmjs.org/bindings
npm http 200 https://registry.npmjs.org/async
npm http 200 https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/q
npm http 200 https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/emissary/-/emissary-1.2.1.tgz
npm http 200 https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/nan/-/nan-0.8.0.tgz
npm http 200 https://registry.npmjs.org/runas
npm http 200 https://registry.npmjs.org/nan/-/nan-0.8.0.tgz
npm http 200 https://registry.npmjs.org/emissary/-/emissary-1.2.1.tgz
/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm ERR! Error: ENOENT, lstat '/private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/q/benchmark/compare-with-callbacks.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.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/Users/lambdamix/.atom/.node-gyp/.atom/.apm/rst-preview/1.0.2/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! path /private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/q/benchmark/compare-with-callbacks.js
npm ERR! fstream_path /private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/q/benchmark/compare-with-callbacks.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 rolling back Error: ENOTEMPTY, rmdir '/private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/nan'
npm ERR! error rolling back  pathwatcher@0.16.0 { [Error: ENOTEMPTY, rmdir '/private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/nan']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/nan' }
npm ERR! runas@0.5.4 install: `node-gyp rebuild`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the runas@0.5.4 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.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/Users/lambdamix/.atom/.node-gyp/.atom/.apm/rst-preview/1.0.2/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm http 200 https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/mixto
npm http 200 https://registry.npmjs.org/property-accessors
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/npm-debug.log
npm ERR! not ok code 0
ilya-klyuchnikov commented 10 years ago

Update, installation is OK if atom is opened from console as discussed in http://discuss.atom.io/t/node-command-not-found/5604

sakulstra commented 9 years ago

Same problem here, but opening via console won't help :/ Installing package rst-preview failed Error: Installing “rst-preview@1.0.2” failed. at /opt/atom/resources/app/node_modules/settings-view/lib/package-manager.js:246:21 at exit (/opt/atom/resources/app/node_modules/settings-view/lib/package-manager.js:37:16) at BufferedProcess.triggerExitCallback (/opt/atom/resources/app/src/buffered-process.js:52:47) at /opt/atom/resources/app/src/buffered-process.js:59:18 at Socket. (/opt/atom/resources/app/src/buffered-process.js:105:18) at Socket.emit (events.js:129:20) at Pipe.close (net.js:461:12)

runas@0.5.4 install /tmp/apm-install-dir-1141017-25039-12haxca/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas node-gyp rebuild

make: Gehe in Verzeichnis '/tmp/apm-install-dir-1141017-25039-12haxca/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas/build' CXX(target) Release/obj.target/runas/src/main.o make: Verlasse Verzeichnis '/tmp/apm-install-dir-1141017-25039-12haxca/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas/build'

npm http GET https://registry.npmjs.org/fs-plus npm http GET https://registry.npmjs.org/pathwatcher/0.16.0 npm http GET https://registry.npmjs.org/underscore-plus npm http 304 https://registry.npmjs.org/underscore-plus npm http 304 https://registry.npmjs.org/fs-plus npm http 304 https://registry.npmjs.org/pathwatcher/0.16.0 npm http GET https://registry.npmjs.org/underscore npm http GET https://registry.npmjs.org/mkdirp npm http GET https://registry.npmjs.org/rimraf npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/bindings npm http GET https://registry.npmjs.org/nan/0.8.0 npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/emissary npm http GET https://registry.npmjs.org/q npm http GET https://registry.npmjs.org/runas npm http 304 https://registry.npmjs.org/rimraf npm http 304 https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/underscore npm http 304 https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/q npm http 304 https://registry.npmjs.org/emissary npm http 304 https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/nan/0.8.0 npm http 304 https://registry.npmjs.org/runas In file included from ../src/main.cc:1:0: ../../nan/nan.h: In function ‘v8::Handlev8::Value NanError(const char_)’: ../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                  ^

../../nan/nan.h:339:13: note: in expansion of macro ‘_NAN_ERROR’ return _NANERROR(v8::Exception::Error, errmsg); ^ ../../nan/nan.h: In function ‘void NanThrowError(const char)’: ../../nan/nan.h:324:7: error: ‘ThrowException’ is not a member of ‘v8’ v8::ThrowException(_NAN_ERROR(fun, errmsg)); \ ^ ../../nan/nan.h:343:5: note: in expansion of macro ‘_NAN_THROW_ERROR’ _NAN_THROW_ERROR(v8::Exception::Error, errmsg); ^ ../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                  ^

../../nan/nan.h:324:26: note: in expansion of macro ‘_NAN_ERROR’ v8::ThrowException(_NAN_ERROR(fun, errmsg)); \ ^ ../../nan/nan.h:343:5: note: in expansion of macro ‘_NAN_THROW_ERROR’ _NAN_THROWERROR(v8::Exception::Error, errmsg); ^ ../../nan/nan.h: In function ‘void NanThrowError(v8::Handlev8::Value)’: ../../nan/nan.h:348:5: error: ‘ThrowException’ is not a member of ‘v8’ v8::ThrowException(error); ^ ../../nan/nan.h: In function ‘v8::Handlev8::Value NanError(const char, int)’: ../../nan/nan.h:355:53: error: ‘New’ is not a member of ‘v8::String’ v8::Localv8::Value err = v8::Exception::Error(v8::String::New(msg)); ^ ../../nan/nan.h:357:14: error: ‘New’ is not a member of ‘v8::String’ obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber)); ^ ../../nan/nan.h:357:65: error: no matching function for call to ‘v8::Int32::New(const int&)’ obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber)); ^ ../../nan/nan.h:357:65: note: candidate is: In file included from /home/lukas/.atom/.node-gyp/.node-gyp/0.18.0/src/node.h:61:0, from ../../nan/nan.h:134, from ../src/main.cc:1: /home/lukas/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2012:25: note: static v8::Localv8::Integer v8::Integer::New(v8::Isolate_, int32_t) static Local New(Isolate* isolate, int32t value); ^ /home/lukas/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2012:25: note: candidate expects 2 arguments, 1 provided In file included from ../src/main.cc:1:0: ../../nan/nan.h: In function ‘v8::Handlev8::Value NanTypeError(const char)’: ../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                  ^

../../nan/nan.h:369:12: note: in expansion of macro ‘_NAN_ERROR’ return _NANERROR(v8::Exception::TypeError, errmsg); ^ ../../nan/nan.h: In function ‘void NanThrowTypeError(const char)’: ../../nan/nan.h:324:7: error: ‘ThrowException’ is not a member of ‘v8’ v8::ThrowException(_NAN_ERROR(fun, errmsg)); \ ^ ../../nan/nan.h:373:5: note: in expansion of macro ‘_NAN_THROW_ERROR’ _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg); ^ ../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                  ^

../../nan/nan.h:324:26: note: in expansion of macro ‘_NAN_ERROR’ v8::ThrowException(_NAN_ERROR(fun, errmsg)); \ ^ ../../nan/nan.h:373:5: note: in expansion of macro ‘_NAN_THROW_ERROR’ _NAN_THROWERROR(v8::Exception::TypeError, errmsg); ^ ../../nan/nan.h: In function ‘v8::Handlev8::Value NanRangeError(const char)’: ../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                  ^

../../nan/nan.h:377:12: note: in expansion of macro ‘_NAN_ERROR’ return _NANERROR(v8::Exception::RangeError, errmsg); ^ ../../nan/nan.h: In function ‘void NanThrowRangeError(const char)’: ../../nan/nan.h:324:7: error: ‘ThrowException’ is not a member of ‘v8’ v8::ThrowException(_NAN_ERROR(fun, errmsg)); \ ^ ../../nan/nan.h:381:5: note: in expansion of macro ‘_NAN_THROW_ERROR’ _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg); ^ ../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                  ^

../../nan/nan.h:324:26: note: in expansion of macro ‘_NAN_ERROR’ v8::ThrowException(_NAN_ERROR(fun, errmsg)); \ ^ ../../nan/nan.h:381:5: note: in expansion of macro ‘_NAN_THROW_ERROR’ _NAN_THROWERROR(v8::Exception::RangeError, errmsg); ^ ../../nan/nan.h: In constructor ‘NanCallback::NanCallback()’: ../../nan/nan.h:727:49: error: no matching function for call to ‘v8::Object::New()’ v8::Localv8::Object obj = v8::Object::New(); ^ ../../nan/nan.h:727:49: note: candidate is: In file included from /home/lukas/.atom/.node-gyp/.node-gyp/0.18.0/src/node.h:61:0, from ../../nan/nan.h:134, from ../src/main.cc:1: /home/lukas/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2388:24: note: static v8::Localv8::Object v8::Object::New(v8::Isolate) static Local New(Isolate isolate); ^ /home/lukas/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2388:24: note: candidate expects 1 argument, 0 provided In file included from ../src/main.cc:1:0: ../../nan/nan.h: In constructor ‘NanCallback::NanCallback(const v8::Handlev8::Function&)’: ../../nan/nan.h:733:49: error: no matching function for call to ‘v8::Object::New()’ v8::Localv8::Object obj = v8::Object::New(); ^ ../../nan/nan.h:733:49: note: candidate is: In file included from /home/lukas/.atom/.node-gyp/.node-gyp/0.18.0/src/node.h:61:0, from ../../nan/nan.h:134, from ../src/main.cc:1: /home/lukas/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2388:24: note: static v8::Localv8::Object v8::Object::New(v8::Isolate) static Local New(Isolate_ isolate); ^ /home/lukas/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2388:24: note: candidate expects 1 argument, 0 provided In file included from ../src/main.cc:1:0: ../../nan/nan.h: In destructor ‘NanCallback::~NanCallback()’: ../../nan/nan.h:740:12: error: ‘class v8::Persistentv8::Object’ has no member named ‘Dispose’ handle.Dispose(); ^ ../../nan/nan.h:741:12: error: ‘class v8::Persistentv8::Object’ has no member named ‘Clear’ handle.Clear(); ^ ../../nan/nan.h: In member function ‘void NanCallback::SetFunction(const v8::Handlev8::Function&)’: ../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’

define NanSymbol(value) v8::String::NewSymbol(value)

                      ^

../../nan/nan.h:746:39: note: in expansion of macro ‘NanSymbol’ NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn); ^ ../../nan/nan.h: In member function ‘v8::Localv8::Function NanCallback::GetFunction()’: ../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’

define NanSymbol(value) v8::String::NewSymbol(value)

                      ^

../../nan/nan.h:750:46: note: in expansion of macro ‘NanSymbol’ return NanPersistentToLocal(handle)->Get(NanSymbol("callback")) ^ ../../nan/nan.h:751:25: error: expected primary-expression before ‘>’ token .Asv8::Function(); ^ ../../nan/nan.h:751:27: error: expected primary-expression before ‘)’ token .Asv8::Function(); ^ ../../nan/nan.h: In member function ‘void NanCallback::Call(int, v8::Handlev8::Value_)’: ../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’

define NanSymbol(value) v8::String::NewSymbol(value)

                      ^

../../nan/nan.h:759:13: note: in expansion of macro ‘NanSymbol’ Get(NanSymbol("callback")).Asv8::Function(); ^ ../../nan/nan.h:759:51: error: expected primary-expression before ‘>’ token Get(NanSymbol("callback")).Asv8::Function(); ^ ../../nan/nan.h:759:53: error: expected primary-expression before ‘)’ token Get(NanSymbol("callback")).Asv8::Function(); ^ ../../nan/nan.h:761:9: error: ‘GetCurrent’ is not a member of ‘v8::Context’ v8::Context::GetCurrent()->Global() ^ ../../nan/nan.h: In member function ‘void NanAsyncWorker::SavePersistent(const char_, v8::Localv8::Object&)’: ../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’

define NanSymbol(value) v8::String::NewSymbol(value)

                      ^

../../nan/nan.h:808:17: note: in expansion of macro ‘NanSymbol’ handle->Set(NanSymbol(key), obj); ^ ../../nan/nan.h: In member function ‘v8::Localv8::Object NanAsyncWorker::GetFromPersistent(const char_)’: ../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’

define NanSymbol(value) v8::String::NewSymbol(value)

                      ^

../../nan/nan.h:815:24: note: in expansion of macro ‘NanSymbol’ return handle->Get(NanSymbol(key)).Asv8::Object(); ^ ../../nan/nan.h:815:53: error: expected primary-expression before ‘>’ token return handle->Get(NanSymbol(key)).Asv8::Object(); ^ ../../nan/nan.h:815:55: error: expected primary-expression before ‘)’ token return handle->Get(NanSymbol(key)).Asv8::Object(); ^ ../../nan/nan.h: In member function ‘virtual void NanAsyncWorker::HandleErrorCallback()’: ../../nan/nan.h:837:30: error: ‘New’ is not a member of ‘v8::String’ v8::Exception::Error(v8::String::New(errmsg)) ^ ../src/main.cc: In function ‘void {anonymous}::Runas(const v8::FunctionCallbackInfov8::Value&)’: ../src/main.cc:28:22: error: ‘New’ is not a member of ‘v8::String’ if (v_options->Get(String::New("hide"))->BooleanValue()) ^ ../src/main.cc:30:22: error: ‘New’ is not a member of ‘v8::String’ if (v_options->Get(String::New("admin"))->BooleanValue()) ^ ../src/main.cc:34:42: error: ‘New’ is not a member of ‘v8::String’ Handle v_stdin = v_options->Get(String::New("stdin")); ^ In file included from ../src/main.cc:1:0: ../src/main.cc:40:35: error: no matching function for call to ‘v8::Integer::New(int&)’ NanReturnValue(Integer::New(code)); ^ ../../nan/nan.h:301:65: note: in definition of macro ‘NanReturnValue’

define NanReturnValue(value) return args.GetReturnValue().Set(value)

                                                             ^

../src/main.cc:40:35: note: candidate is: NanReturnValue(Integer::New(code)); ^ ../../nan/nan.h:301:65: note: in definition of macro ‘NanReturnValue’

define NanReturnValue(value) return args.GetReturnValue().Set(value)

                                                             ^

In file included from /home/lukas/.atom/.node-gyp/.node-gyp/0.18.0/src/node.h:61:0, from ../../nan/nan.h:134, from ../src/main.cc:1: /home/lukas/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2012:25: note: static v8::Localv8::Integer v8::Integer::New(v8::Isolate_, int32_t) static Local New(Isolate* isolate, int32_t value); ^ /home/lukas/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2012:25: note: candidate expects 2 arguments, 1 provided In file included from ../src/main.cc:1:0: ../../nan/nan.h:301:70: error: return-statement with a value, in function returning 'void' [-fpermissive]

define NanReturnValue(value) return args.GetReturnValue().Set(value)

                                                                  ^

../src/main.cc:40:3: note: in expansion of macro ‘NanReturnValue’ NanReturnValue(Integer::New(code)); ^ ../../nan/nan.h: In instantiation of ‘void NanDisposePersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits >&) [with T = v8::Object]’: ../../nan/nan.h:786:44: required from here ../../nan/nan.h:394:5: error: ‘class v8::Persistentv8::Object’ has no member named ‘Clear’ handle.Clear(); ^ make: *\ [Release/obj.target/runas/src/main.o] Fehler 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/opt/atom/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.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12) gyp ERR! System Linux 3.16.0-031600-generic gyp ERR! command "node" "/opt/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /tmp/apm-install-dir-1141017-25039-12haxca/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas gyp ERR! node -v v0.10.33 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 304 https://registry.npmjs.org/mixto npm http 304 https://registry.npmjs.org/property-accessors npm ERR! runas@0.5.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the runas@0.5.4 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 Linux 3.16.0-031600-generic npm ERR! command "/opt/atom/resources/app/apm/node_modules/atom-package-manager/bin/node" "/opt/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/opt/atom/resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/home/lukas/.atom/.apmrc" "install" "/home/lukas/.atom/.node-gyp/.atom/.apm/rst-preview/1.0.2/package.tgz" "--target=0.18.0" "--arch=x64" npm ERR! cwd /tmp/apm-install-dir-1141017-25039-12haxca npm ERR! node -v v0.10.33 npm ERR! npm -v 1.4.4 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /tmp/apm-install-dir-1141017-25039-12haxca/npm-debug.log npm ERR! not ok code 0