Comments (4)
p.s. i reinstalled gulp and node, still the same
from lotion.
I can not install lotion.js either on linux. I get this error...
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install:
node ./bin/download.jsnpm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
from lotion.
I've experienced exactly the same issue on windows and on linux. There's a PR on tendermint-node which is supposed to fix this issue. However, it's either not merged or not working but at least it gives us some insight.
I was able to install lotionjs using nvm and switching down to node.js version 10.18.1 . On windows. Hope that helps someone. If there's any better solution I would like to hear it.
Thanks.
from lotion.
npm install lotion --save
...
...
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1734:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1734 | NAPI_EXPORT_FUNCTION(db_del);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1734:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1734 | NAPI_EXPORT_FUNCTION(db_del);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1735:24: error: invalid conversion from ‘napi_value_* ()(napi_env, napi_callback_info)’ {aka ‘napi_value__ ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1735 | NAPI_EXPORT_FUNCTION(db_approximate_size);
| ^~~~~~~~~~~~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1735:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1735 | NAPI_EXPORT_FUNCTION(db_approximate_size);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1735:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1735 | NAPI_EXPORT_FUNCTION(db_approximate_size);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1735:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1735 | NAPI_EXPORT_FUNCTION(db_approximate_size);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1735:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1735 | NAPI_EXPORT_FUNCTION(db_approximate_size);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1736:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1736 | NAPI_EXPORT_FUNCTION(db_compact_range);
| ^~~~~~~~~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1736:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1736 | NAPI_EXPORT_FUNCTION(db_compact_range);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1736:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1736 | NAPI_EXPORT_FUNCTION(db_compact_range);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1736:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1736 | NAPI_EXPORT_FUNCTION(db_compact_range);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1736:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1736 | NAPI_EXPORT_FUNCTION(db_compact_range);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1737:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1737 | NAPI_EXPORT_FUNCTION(db_get_property);
| ^~~~~~~~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1737:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1737 | NAPI_EXPORT_FUNCTION(db_get_property);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1737:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1737 | NAPI_EXPORT_FUNCTION(db_get_property);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1737:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1737 | NAPI_EXPORT_FUNCTION(db_get_property);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1737:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1737 | NAPI_EXPORT_FUNCTION(db_get_property);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1739:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1739 | NAPI_EXPORT_FUNCTION(destroy_db);
| ^~~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1739:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1739 | NAPI_EXPORT_FUNCTION(destroy_db);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1739:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1739 | NAPI_EXPORT_FUNCTION(destroy_db);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1739:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1739 | NAPI_EXPORT_FUNCTION(destroy_db);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1739:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1739 | NAPI_EXPORT_FUNCTION(destroy_db);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1740:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1740 | NAPI_EXPORT_FUNCTION(repair_db);
| ^~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1740:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1740 | NAPI_EXPORT_FUNCTION(repair_db);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1740:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1740 | NAPI_EXPORT_FUNCTION(repair_db);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1740:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1740 | NAPI_EXPORT_FUNCTION(repair_db);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1740:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1740 | NAPI_EXPORT_FUNCTION(repair_db);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1742:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1742 | NAPI_EXPORT_FUNCTION(iterator_init);
| ^~~~~~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1742:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1742 | NAPI_EXPORT_FUNCTION(iterator_init);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1742:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1742 | NAPI_EXPORT_FUNCTION(iterator_init);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1742:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1742 | NAPI_EXPORT_FUNCTION(iterator_init);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1742:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1742 | NAPI_EXPORT_FUNCTION(iterator_init);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1743:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1743 | NAPI_EXPORT_FUNCTION(iterator_seek);
| ^~~~~~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1743:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1743 | NAPI_EXPORT_FUNCTION(iterator_seek);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1743:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1743 | NAPI_EXPORT_FUNCTION(iterator_seek);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1743:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1743 | NAPI_EXPORT_FUNCTION(iterator_seek);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1743:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1743 | NAPI_EXPORT_FUNCTION(iterator_seek);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1744:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1744 | NAPI_EXPORT_FUNCTION(iterator_end);
| ^~~~~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1744:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1744 | NAPI_EXPORT_FUNCTION(iterator_end);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1744:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1744 | NAPI_EXPORT_FUNCTION(iterator_end);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1744:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1744 | NAPI_EXPORT_FUNCTION(iterator_end);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1744:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1744 | NAPI_EXPORT_FUNCTION(iterator_end);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1745:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1745 | NAPI_EXPORT_FUNCTION(iterator_next);
| ^~~~~~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1745:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1745 | NAPI_EXPORT_FUNCTION(iterator_next);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1745:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1745 | NAPI_EXPORT_FUNCTION(iterator_next);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1745:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1745 | NAPI_EXPORT_FUNCTION(iterator_next);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1745:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1745 | NAPI_EXPORT_FUNCTION(iterator_next);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1747:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1747 | NAPI_EXPORT_FUNCTION(batch_do);
| ^~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1747:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1747 | NAPI_EXPORT_FUNCTION(batch_do);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1747:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1747 | NAPI_EXPORT_FUNCTION(batch_do);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1747:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1747 | NAPI_EXPORT_FUNCTION(batch_do);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1747:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1747 | NAPI_EXPORT_FUNCTION(batch_do);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1748:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1748 | NAPI_EXPORT_FUNCTION(batch_init);
| ^~~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1748:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1748 | NAPI_EXPORT_FUNCTION(batch_init);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1748:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1748 | NAPI_EXPORT_FUNCTION(batch_init);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1748:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1748 | NAPI_EXPORT_FUNCTION(batch_init);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1748:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1748 | NAPI_EXPORT_FUNCTION(batch_init);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1749:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1749 | NAPI_EXPORT_FUNCTION(batch_put);
| ^~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1749:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1749 | NAPI_EXPORT_FUNCTION(batch_put);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1749:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1749 | NAPI_EXPORT_FUNCTION(batch_put);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1749:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1749 | NAPI_EXPORT_FUNCTION(batch_put);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1749:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1749 | NAPI_EXPORT_FUNCTION(batch_put);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1750:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1750 | NAPI_EXPORT_FUNCTION(batch_del);
| ^~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1750:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1750 | NAPI_EXPORT_FUNCTION(batch_del);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1750:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1750 | NAPI_EXPORT_FUNCTION(batch_del);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1750:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1750 | NAPI_EXPORT_FUNCTION(batch_del);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1750:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1750 | NAPI_EXPORT_FUNCTION(batch_del);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1751:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1751 | NAPI_EXPORT_FUNCTION(batch_clear);
| ^~~~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1751:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1751 | NAPI_EXPORT_FUNCTION(batch_clear);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1751:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1751 | NAPI_EXPORT_FUNCTION(batch_clear);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1751:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1751 | NAPI_EXPORT_FUNCTION(batch_clear);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1751:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1751 | NAPI_EXPORT_FUNCTION(batch_clear);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../binding.cc:1752:24: error: invalid conversion from ‘napi_value* (*)(napi_env, napi_callback_info)’ {aka ‘napi_value_* ()(napi_env__, napi_callback_info__)’} to ‘void’ [-fpermissive]
1752 | NAPI_EXPORT_FUNCTION(batch_write);
| ^~~~~~~~~~~
| |
| napi_value__* ()(napi_env, napi_callback_info) {aka napi_value__ ()(napi_env__, napi_callback_info__)}
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1752:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1752 | NAPI_EXPORT_FUNCTION(batch_write);
| ^~~~~~~~~~~~~~~~~~~~
../../napi-macros/napi-macros.h:118:86: error: too many arguments to function ‘napi_status napi_create_function(napi_env, const char, napi_callback, void*, napi_value__**)’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##_fn))
| ^
../../napi-macros/napi-macros.h:21:8: note: in definition of macro ‘NAPI_STATUS_THROWS_VOID’
21 | if ((call) != napi_ok) {
| ^~~~
../binding.cc:1752:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1752 | NAPI_EXPORT_FUNCTION(batch_write);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here
148 | NAPI_EXTERN napi_status napi_create_function(napi_env env,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:118:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
118 | NAPI_STATUS_THROWS_VOID(napi_create_function(env, NULL, 0, name, NULL, &name##_fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1752:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1752 | NAPI_EXPORT_FUNCTION(batch_write);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
In file included from ../binding.cc:3:
../../napi-macros/napi-macros.h:22:49: error: too many arguments to function ‘napi_status napi_throw_error(napi_env, const char*)’
22 | napi_throw_error(env, NULL, #call " failed!");
| ^
../../napi-macros/napi-macros.h:119:5: note: in expansion of macro ‘NAPI_STATUS_THROWS_VOID’
119 | NAPI_STATUS_THROWS_VOID(napi_set_named_property(env, exports, #name, name##_fn))
| ^~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:1752:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’
1752 | NAPI_EXPORT_FUNCTION(batch_write);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../binding.cc:4:
/root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here
416 | NAPI_EXTERN napi_status napi_throw_error(napi_env env, const char* msg);
| ^~~~~~~~~~~~~~~~
make: *** [leveldown.target.mk:106: Release/obj.target/leveldown/binding.o] Error 1
make: Leaving directory '/mnt/d/first-blockchain-app/node_modules/leveldown/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/root/.nvm/versions/node/v8.2.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 5.10.60.1-microsoft-standard-WSL2
gyp ERR! command "/root/.nvm/versions/node/v8.2.1/bin/node" "/root/.nvm/versions/node/v8.2.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /mnt/d/first-blockchain-app/node_modules/leveldown
gyp ERR! node -v v8.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-10-08T16_01_46_952Z-debug.log
┌──(root💀DELL)-[/mnt/d/first-blockchain-app]
└─# npm run build
npm ERR! missing script: build
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-10-08T16_03_34_804Z-debug.log
┌──(root💀DELL)-[/mnt/d/first-blockchain-app]
from lotion.
Related Issues (20)
- Malformed JSON while it's not HOT 1
- Light client unique ID?
- `lotion state <GCI>` times out
- IBC configuration?
- Block times
- UnhandledPromiseRejectionWarning (Node 8.10.0) HOT 1
- app.use((state, tx)) still returns initial state
- transactionHandler is invoked twice
- Android app for blockchain messenger
- Block info missing HOT 1
- opts.keyPath and opts.genesisPath
- Project Status HOT 2
- UnhandledPromiseRejectionWarning: Error: invalid wire type 7 at offset 88 HOT 2
- Error when launching server HOT 2
- TypeError: app.listen is not a function HOT 2
- How to run lotion with multiple peers?
- Trouble installing on m1 HOT 2
- Can there be an better explanation with the new way of doing things with axios?
- Current status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lotion.