Gyp error when apm install


#1

dependencies include sqlite3

In file included from ../src/database.cc:5: In file included from ../src/database.h:10: ../src/async.h:17:5: error: unknown type name 'uv_async_t' uv_async_t watcher; ^ ../src/async.h:32:26: error: unknown type name 'uv_async_t' static void listener(uv_async_t* handle, int status) { ^ ../src/async.h:48:23: error: unknown type name 'uv_handle_t' static void close(uv_handle_t* handle) { ^ ../src/async.h:29:23: error: use of undeclared identifier 'uv_default_loop' uv_async_init(uv_default_loop(), &watcher, listener); ^ ../src/async.h:40:23: error: use of undeclared identifier 'uv_handle_t' uv_unref((uv_handle_t *)&async->watcher); ^ ../src/async.h:40:36: error: expected expression uv_unref((uv_handle_t *)&async->watcher); ^ ../src/async.h:60:19: error: use of undeclared identifier 'uv_handle_t' uv_close((uv_handle_t*)&watcher, close); ^ ../src/async.h:60:31: error: expected expression uv_close((uv_handle_t*)&watcher, close); ^ ../src/async.h:66:17: error: use of undeclared identifier 'uv_handle_t' uv_ref((uv_handle_t *)&watcher); ^ ../src/async.h:66:30: error: expected expression uv_ref((uv_handle_t *)&watcher); ^ In file included from ../src/database.cc:5: ../src/database.h:20:25: error: expected class name class Database : public ObjectWrap { ^ ../src/database.h:32:9: error: unknown type name 'uv_work_t' uv_work_t request; ^ ../src/database.h:120:36: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'? static Handle<Value> New(const Arguments& args); ^~~~~~~~~ v8::internal::Arguments


#2

Can you please provide more details? E.g. which package you are attempting to install, what OS, and so on.