This repository has been archived by the owner on Jun 11, 2019. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I receive the error below when running "sudo npm install" on my OSX machine. I updated the sqlite dependency version and added bodyParser to the list of dependencies.
pokeefe@pwf:~/git/stripe-ctf-2.0/levels/0$ sudo npm install
npm WARN package.json [email protected] No license field.
npm WARN engine [email protected]: wanted: {"node":">= 0.6.13 && < 0.9.0"} (current: {"node":"0.12.7","npm":"2.11.3"})
|
CC(target) Release/obj.target/sqlite3/deps/sqlite3/sqlite3.o
../deps/sqlite3/sqlite3.c:128221:34: warning: comparison of constant 4 with boolean expression is always false [-Wtautological-constant-out-of-range-compare]
if( !sqlite3_value_type(pValue)==SQLITE_BLOB ) return SQLITE_ERROR;
~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ~~~~~~~~~~~
../deps/sqlite3/sqlite3.c:7721:26: warning: unused variable 'sqlite3one' [-Wunused-const-variable]
SQLITE_PRIVATE const int sqlite3one = 1;
^
2 warnings generated.
LIBTOOL-STATIC Release/sqlite3.a
CXX(target) Release/obj.target/node_sqlite3/src/database.o
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:61:19: error: use of undeclared identifier 'uv_handle_t'
uv_close((uv_handle_t)&watcher, close);
^
../src/async.h:61:31: error: expected expression
uv_close((uv_handle_t_)&watcher, close);
^
../src/async.h:67:17: error: use of undeclared identifier 'uv_handle_t'
uv_ref((uv_handle_t *)&watcher);
^
../src/async.h:67: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:119:36: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle New(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/pokeefe/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/database.cc:5:
../src/database.h:121:27: error: unknown type name 'uv_work_t'
static void Work_Open(uv_work_t_ req);
^
../src/database.h:122:32: error: unknown type name 'uv_work_t'
static void Work_AfterOpen(uv_work_t* req);
^
../src/database.h:124:62: error: unknown type name 'AccessorInfo'
static Handle OpenGetter(Local str, const AccessorInfo& accessor);
^
../src/database.h:129:37: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle Exec(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/pokeefe/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/database.cc:5:
../src/database.h:131:27: error: unknown type name 'uv_work_t'
static void Work_Exec(uv_work_t* req);
^
../src/database.h:132:32: error: unknown type name 'uv_work_t'
static void Work_AfterExec(uv_work_t* req);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/node_sqlite3/src/database.o] Error 1
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/pokeefe/git/stripe-ctf-2.0/levels/0/node_modules/sqlite3
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the sqlite3 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 sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/pokeefe/git/stripe-ctf-2.0/levels/0/npm-debug.log