Deploy help with enmap

Hi, I’m new to the netlify community and so far I’m loving it <3 but I’m having an issue whenever I deploy my site.

4:34:31 PM: npm WARN deprecated snekfetch@4.0.4: use node-fetch instead
4:34:31 PM: npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
4:35:10 PM: > integer@1.0.7 install /opt/build/repo/node_modules/integer
4:35:10 PM: > node-gyp rebuild
4:35:14 PM: make: Entering directory '/opt/build/repo/node_modules/integer/build'
4:35:14 PM:   CXX(target) Release/obj.target/integer/src/integer.o
4:35:18 PM: ../src/integer.cpp: In static member function ‘static Result Integer::Cast(v8::Local<v8::String>, uint8_t)’:
4:35:18 PM: ../src/integer.cpp:329:33: error: no matching function for call to ‘v8::String::Value::Value(v8::Local<v8::String>&)’
4:35:18 PM:    v8::String::Value utf16(string);
4:35:18 PM:                                  ^
4:35:18 PM: In file included from /opt/buildhome/.cache/node-gyp/12.18.0/include/node/node.h:67:0,
4:35:18 PM:                  from ../src/integer.hpp:3,
4:35:18 PM:                  from ../src/integer.cpp:1:
4:35:18 PM: /opt/buildhome/.cache/node-gyp/12.18.0/include/node/v8.h:3158:5: note: candidate: v8::String::Value::Value(v8::Isolate*, v8::Local<v8::Value>)
4:35:18 PM:      Value(Isolate* isolate, Local<v8::Value> obj);
4:35:18 PM:      ^
4:35:18 PM: /opt/buildhome/.cache/node-gyp/12.18.0/include/node/v8.h:3158:5: note:   candidate expects 2 arguments, 1 provided
4:35:18 PM: integer.target.mk:114: recipe for target 'Release/obj.target/integer/src/integer.o' failed
4:35:18 PM: make: *** [Release/obj.target/integer/src/integer.o] Error 1
4:35:18 PM: make: Leaving directory '/opt/build/repo/node_modules/integer/build'
4:35:18 PM: gyp ERR! build error
4:35:18 PM: gyp ERR! stack Error: `make` failed with exit code: 2
4:35:18 PM: gyp ERR! stack     at ChildProcess.onExit (/opt/buildhome/.nvm/versions/node/v12.18.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
4:35:18 PM: gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
4:35:18 PM: gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
4:35:18 PM: gyp ERR! System Linux 4.14.138+
4:35:18 PM: gyp ERR! command "/opt/buildhome/.nvm/versions/node/v12.18.0/bin/node" "/opt/buildhome/.nvm/versions/node/v12.18.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
4:35:18 PM: gyp ERR! cwd /opt/build/repo/node_modules/integer
4:35:18 PM: gyp ERR! node -v v12.18.0
4:35:18 PM: gyp ERR! node-gyp -v v5.1.0
4:35:18 PM: gyp ERR! not ok
4:35:18 PM: npm WARN enmap@4.8.7 requires a peer of better-sqlite-pool@github:eslachance/better-sqlite-pool but none is installed. You must install peer dependencies yourself.
4:35:18 PM: npm ERR! code ELIFECYCLE
4:35:18 PM: npm ERR! errno 1
4:35:18 PM: npm ERR! integer@1.0.7 install: `node-gyp rebuild`
4:35:18 PM: npm ERR! Exit status 1
4:35:18 PM: npm ERR!
4:35:18 PM: npm ERR! Failed at the integer@1.0.7 install script.
4:35:18 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
4:35:18 PM: npm ERR! A complete log of this run can be found in:
4:35:18 PM: npm ERR!     /opt/buildhome/.npm/_logs/2020-06-18T20_35_18_577Z-debug.log
4:35:18 PM: Error during NPM install
4:35:18 PM: Error running command: Build script returned non-zero exit code: 1
4:35:18 PM: Failing build: Failed to build site
4:35:18 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
4:35:18 PM: Finished processing build request in 54.526642365s```


Could someone possibly help me out :)

hi there, welcome! first question - does this build properly locally?

Yes it works fine for me but when i try to do it here i get that error.
Also the error might be the package quick.db but im not sure.

ok, i don’t know much about enmap, but it seems like it is some kind of sql wrapper? are you trying to run a database on Netlify? that won’t work:

Here is a good summary of what you can and can not do on Netlify you might find helpful:

it’s not like mongo or any of the others in which you have to connect to it make sqlite files so is that why it’s not working?

hi @TheTeaCup, you can’t run SQL databases on Netlify - is that what you are trying to do?

yeah it was, thanks for the info!

1 Like