^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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
^~~~~~~~
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
^~~~
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
^~~~
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-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]
Tried: rm -rf *
npm install lotion --save
again same issue tried manual depends install but not resolved
~~~~~~ ../binding.cc:1734:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1734~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1734:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1734~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1735:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1735~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1735:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1735~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1736:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1736~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1736:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1736~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1737:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1737~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1737:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1737~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1739:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1739~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1739:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1739~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1740:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1740~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1740:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1740~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1742:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1742~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1742:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1742~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1743:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1743~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1743:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1743~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1744:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1744~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1744:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1744~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1745:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1745~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1745:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1745~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1747:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1747~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1747:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1747~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1748:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1748~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1748:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1748~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1749:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1749~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1749:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1749~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1750:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1750~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1750:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1750~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:148:25: note: declared here 148~~~~~~~ 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~~~~~~ ../binding.cc:1751:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1751~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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~~~~~~ ../binding.cc:1751:3: note: in expansion of macro ‘NAPI_EXPORT_FUNCTION’ 1751~~~~~~~ In file included from ../binding.cc:4: /root/.node-gyp/8.2.1/include/node/node_api.h:416:25: note: declared here 416~~~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-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]
Tried: rm -rf * npm install lotion --save again same issue tried manual depends install but not resolved