Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

lotion install error #180

Open
ubuntunewdev100 opened this issue Jun 12, 2019 · 4 comments
Open

lotion install error #180

ubuntunewdev100 opened this issue Jun 12, 2019 · 4 comments

Comments

@ubuntunewdev100
Copy link

Hi,

When i try to install lotion i get: fs.js:27
const { Math, Object } = primordials;
^
ReferenceError: primordials is not defined
at fs.js:27:26
at req_ (/root/node_modules/natives/index.js:143:24)
at Object.req [as require] (/root/node_modules/natives/index.js:55:10)
at Object. (/root/node_modules/fstream/node_modules/graceful-fs/fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:774:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
at Module.load (internal/modules/cjs/loader.js:641:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:681:19)
at require (internal/modules/cjs/helpers.js:16:16)
npm WARN saveError ENOENT: no such file or directory, open '/root/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
npm WARN root No description
npm WARN root No repository field.
npm WARN root No README data
npm WARN root No license field.

Also, afterwards when i try to search for node_modules/lotion/bin/tendermint gen_validator it is not there.

Does anyone have a solution?

@ubuntunewdev100
Copy link
Author

p.s. i reinstalled gulp and node, still the same

@jsquardo
Copy link

I can not install lotion.js either on linux. I get this error...

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! tendermint-node@5.1.4 install: node ./bin/download.jsnpm ERR! Exit status 1 npm ERR! npm ERR! Failed at the tendermint-node@5.1.4 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@cizza
Copy link

cizza commented Jan 27, 2020

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.

@AnjaniGourisaria
Copy link

AnjaniGourisaria commented Oct 8, 2021

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 codigion@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! leveldown@5.6.0 install: node-gyp-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the leveldown@5.6.0 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]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants