Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heroku post build failed. #42

Open
codophobic opened this issue May 12, 2020 · 2 comments
Open

heroku post build failed. #42

codophobic opened this issue May 12, 2020 · 2 comments

Comments

@codophobic
Copy link

remote: -----> Build
remote: Running heroku-postbuild
remote:
remote: > [email protected] heroku-postbuild /tmp/build_d4173c10eae1c1ceaf8c889b305d0e54
remote: > NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
remote:
remote: up to date in 0.258s
remote: found 0 vulnerabilities
remote:
remote: npm ERR! code ENOENT
remote: npm ERR! syscall open
remote: npm ERR! path /tmp/build_d4173c10eae1c1ceaf8c889b305d0e54/client/package.json
remote: npm ERR! errno -2
remote: npm ERR! enoent ENOENT: no such file or directory, open '/tmp/build_d4173c10eae1c1ceaf8c889b305d0e54/client/package.json'
remote: npm ERR! enoent This is related to npm not being able to find a file.
remote: npm ERR! enoent
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.2ILfy/_logs/2020-05-12T10_46_17_010Z-debug.log
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 254
remote: npm ERR! [email protected] heroku-postbuild: NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
remote: npm ERR! Exit status 254
remote: npm ERR!
remote: npm ERR! Failed at the [email protected] heroku-postbuild script.
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.2ILfy/_logs/2020-05-12T10_46_17_024Z-debug.log
remote:
remote: -----> Build failed
remote:
remote: We're sorry this build is failing! You can troubleshoot common issues here:
remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote: If you're stuck, please submit a ticket so we can help:
remote: https://help.heroku.com/
remote:
remote: Love,
remote: Heroku
remote:
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to safe-everglades-73074.
remote:
To https://git.heroku.com/safe-everglades-73074.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/safe-everglades-73074.git'

@dulerong
Copy link

Open up the client directory, not in visual studio but in windows folder, go to view and check show hidden folder, git folder will appear, delete it, cut and paste the entire client folder outside the main directory, then go back to command in visual studio, do the following

Git add .
Git commit -m "some comment"
After adding and committing without the client folder, cut and paste back the client folder to where it was, and do the following.

Git init (not sure if this is necessary but I did it)
heroku git:remote -a ... (the message for setting heroku remote)
Git add .
Git commit -m "some comment"
Git push heroku master
As to why this error occurred I don't know, apparently it's got to do with having two git folders in main and client directory, each one gets created but perhaps intrinsically different? The solution seems to be getting rid of the git folder in the sub directory, keep the one in main directory, and do the above steps to make it work.

Apparently just simply deleting the git folder isn't enough, you have to move the client folder outside once, and move it back to the exact same location, and Git Add Git Commit.

@Jonath-z
Copy link

Jonath-z commented Jun 5, 2021

I get the same issue with a nodejs app,and i don't know how to fix it. I'm new in coding. please may someone help me

`-----> Building on the Heroku-20 stack

-----> Determining which buildpack to use for this app

-----> Node.js app detected

-----> Creating runtime environment

NPM_CONFIG_LOGLEVEL=error

NODE_VERBOSE=false

NODE_ENV=production

NODE_MODULES_CACHE=true

-----> Installing binaries

engines.node (package.json): 16.2.0

engines.npm (package.json): 7.13.0

Resolving node version 16.2.0...

Downloading and installing node 16.2.0...

npm 7.13.0 already installed with node

-----> Installing dependencies

Installing node modules

npm ERR! code 1

npm ERR! path /tmp/build_c757d048/node_modules/inotify

npm ERR! command failed

npm ERR! command sh -c node-gyp rebuild

npm ERR! make: Entering directory '/tmp/build_c757d048/node_modules/inotify/build'

npm ERR! CXX(target) Release/obj.target/inotify/src/bindings.o

npm ERR! make: Leaving directory '/tmp/build_c757d048/node_modules/inotify/build'

npm ERR! gyp info it worked if it ends with ok

npm ERR! gyp info using [email protected]

npm ERR! gyp info using [email protected] | linux | x64

npm ERR! gyp info find Python using Python version 3.8.5 found at "/usr/bin/python3"

npm ERR! gyp http GET https://nodejs.org/download/release/v16.2.0/node-v16.2.0-headers.tar.gz

npm ERR! gyp http 200 https://nodejs.org/download/release/v16.2.0/node-v16.2.0-headers.tar.gz

npm ERR! gyp http GET https://nodejs.org/download/release/v16.2.0/SHASUMS256.txt

npm ERR! gyp http 200 https://nodejs.org/download/release/v16.2.0/SHASUMS256.txt

npm ERR! (node:1504) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.

npm ERR! (Use node --trace-deprecation ... to show where the warning was created)

npm ERR! gyp info spawn /usr/bin/python3

npm ERR! gyp info spawn args [

npm ERR! gyp info spawn args '/tmp/build_c757d048/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',

npm ERR! gyp info spawn args 'binding.gyp',

npm ERR! gyp info spawn args '-f',

npm ERR! gyp info spawn args 'make',

npm ERR! gyp info spawn args '-I',

npm ERR! gyp info spawn args '/tmp/build_c757d048/node_modules/inotify/build/config.gypi',

npm ERR! gyp info spawn args '-I',

npm ERR! gyp info spawn args '/tmp/build_c757d048/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',

npm ERR! gyp info spawn args '-I',

npm ERR! gyp info spawn args '/app/.cache/node-gyp/16.2.0/include/node/common.gypi',

npm ERR! gyp info spawn args '-Dlibrary=shared_library',

npm ERR! gyp info spawn args '-Dvisibility=default',

npm ERR! gyp info spawn args '-Dnode_root_dir=/app/.cache/node-gyp/16.2.0',

npm ERR! gyp info spawn args '-Dnode_gyp_dir=/tmp/build_c757d048/.heroku/node/lib/node_modules/npm/node_modules/node-gyp',

npm ERR! gyp info spawn args '-Dnode_lib_file=/app/.cache/node-gyp/16.2.0/<(target_arch)/node.lib',

npm ERR! gyp info spawn args '-Dmodule_root_dir=/tmp/build_c757d048/node_modules/inotify',

npm ERR! gyp info spawn args '-Dnode_engine=v8',

npm ERR! gyp info spawn args '--depth=.',

npm ERR! gyp info spawn args '--no-parallel',

npm ERR! gyp info spawn args '--generator-output',

npm ERR! gyp info spawn args 'build',

npm ERR! gyp info spawn args '-Goutput_dir=.'

npm ERR! gyp info spawn args ]

npm ERR! gyp info spawn make

npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]

npm ERR! In file included from ../src/bindings.cc:2:

npm ERR! ../src/bindings.h:10:27: error: ‘Handle’ has not been declared

npm ERR! 10 | static void Initialize(Handle target);

npm ERR! | ^~~~~~

npm ERR! ../src/bindings.h:10:33: error: expected ‘,’ or ‘...’ before ‘<’ token

npm ERR! 10 | static void Initialize(Handle target);

npm ERR! | ^

npm ERR! ../src/bindings.cc:11:27: error: variable or field ‘Initialize’ declared void

npm ERR! 11 | void Inotify::Initialize(Handle exports) {

npm ERR! | ^~~~~~

npm ERR! ../src/bindings.cc:11:27: error: ‘Handle’ was not declared in this scope

npm ERR! ../src/bindings.cc:11:40: error: expected primary-expression before ‘>’ token

npm ERR! 11 | void Inotify::Initialize(Handle exports) {

npm ERR! | ^

npm ERR! ../src/bindings.cc:11:42: error: ‘exports’ was not declared in this scope

npm ERR! 11 | void Inotify::Initialize(Handle exports) {

npm ERR! | ^~~~~~~

npm ERR! ../src/bindings.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeInotify::Inotify::AddWatch(Nan::NAN_METHOD_ARGS_TYPE)’:

npm ERR! ../src/bindings.cc:146:43: error: no matching function for call to ‘v8::Value::ToObject()’

npm ERR! 146 | Local args_ = info[0]->ToObject();

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3031:44: note: candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’

npm ERR! 3031 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject(

npm ERR! | ^~~~~~~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3031:44: note: candidate expects 1 argument, 0 provided

npm ERR! ../src/bindings.cc:149:27: error: no matching function for call to ‘v8::Object::Has(v8::Localv8::String&)’

npm ERR! 149 | if (!args_->Has(path_sym)) {

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:4008:37: note: candidate: ‘v8::Maybe v8::Object::Has(v8::Localv8::Context, v8::Localv8::Value)’

npm ERR! 4008 | V8_WARN_UNUSED_RESULT Maybe Has(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:4008:37: note: candidate expects 2 arguments, 1 provided

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:4014:37: note: candidate: ‘v8::Maybe v8::Object::Has(v8::Localv8::Context, uint32_t)’

npm ERR! 4014 | V8_WARN_UNUSED_RESULT Maybe Has(Local context, uint32_t index);

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:4014:37: note: candidate expects 2 arguments, 1 provided

npm ERR! ../src/bindings.cc:154:31: error: no matching function for call to ‘v8::Object::Has(v8::Localv8::String&)’

npm ERR! 154 | if (!args_->Has(callback_sym) ||

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:4008:37: note: candidate: ‘v8::Maybe v8::Object::Has(v8::Localv8::Context, v8::Localv8::Value)’

npm ERR! 4008 | V8_WARN_UNUSED_RESULT Maybe Has(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:4008:37: note: candidate expects 2 arguments, 1 provided

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:4014:37: note: candidate: ‘v8::Maybe v8::Object::Has(v8::Localv8::Context, uint32_t)’

npm ERR! 4014 | V8_WARN_UNUSED_RESULT Maybe Has(Local context, uint32_t index);

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:4014:37: note: candidate expects 2 arguments, 1 provided

npm ERR! ../src/bindings.cc:155:28: error: no matching function for call to ‘v8::Object::Get(v8::Localv8::String&)’

npm ERR! 155 | !args_->Get(callback_sym)->IsFunction()) {

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3973:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’

npm ERR! 3973 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3973:43: note: candidate expects 2 arguments, 1 provided

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3976:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’

npm ERR! 3976 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3976:43: note: candidate expects 2 arguments, 1 provided

npm ERR! ../src/bindings.cc:160:32: error: no matching function for call to ‘v8::Object::Has(v8::Localv8::String&)’

npm ERR! 160 | if (!args_->Has(watch_for_sym)) {

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:4008:37: note: candidate: ‘v8::Maybe v8::Object::Has(v8::Localv8::Context, v8::Localv8::Value)’

npm ERR! 4008 | V8_WARN_UNUSED_RESULT Maybe Has(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:4008:37: note: candidate expects 2 arguments, 1 provided

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:4014:37: note: candidate: ‘v8::Maybe v8::Object::Has(v8::Localv8::Context, uint32_t)’

npm ERR! 4014 | V8_WARN_UNUSED_RESULT Maybe Has(Local context, uint32_t index);

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:4014:37: note: candidate expects 2 arguments, 1 provided

npm ERR! ../src/bindings.cc:163:33: error: no matching function for call to ‘v8::Object::Get(v8::Localv8::String&)’

npm ERR! 163 | if (!args_->Get(watch_for_sym)->IsInt32()) {

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3973:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’

npm ERR! 3973 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3973:43: note: candidate expects 2 arguments, 1 provided

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3976:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’

npm ERR! 3976 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3976:43: note: candidate expects 2 arguments, 1 provided

npm ERR! ../src/bindings.cc:166:36: error: no matching function for call to ‘v8::Object::Get(v8::Localv8::String&)’

npm ERR! 166 | mask |= args_->Get(watch_for_sym)->Int32Value();

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3973:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’

npm ERR! 3973 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3973:43: note: candidate expects 2 arguments, 1 provided

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3976:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’

npm ERR! 3976 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3976:43: note: candidate expects 2 arguments, 1 provided

npm ERR! ../src/bindings.cc:172:45: error: no matching function for call to ‘v8::Object::Get(v8::Localv8::String&)’

npm ERR! 172 | String::Utf8Value path(args_->Get(path_sym));

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3973:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’

npm ERR! 3973 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3973:43: note: candidate expects 2 arguments, 1 provided

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3976:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’

npm ERR! 3976 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3976:43: note: candidate expects 2 arguments, 1 provided

npm ERR! ../src/bindings.cc:182:61: error: no matching function for call to ‘v8::Object::Get(v8::Localv8::String&)’

npm ERR! 182 | inotify->handle()->Set(descriptor, args_->Get(callback_sym));

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3973:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’

npm ERR! 3973 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3973:43: note: candidate expects 2 arguments, 1 provided

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3976:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’

npm ERR! 3976 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3976:43: note: candidate expects 2 arguments, 1 provided

npm ERR! ../src/bindings.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeInotify::Inotify::RemoveWatch(Nan::NAN_METHOD_ARGS_TYPE)’:

npm ERR! ../src/bindings.cc:195:31: error: no matching function for call to ‘v8::Value::Int32Value()’

npm ERR! 195 | watch = info[0]->Int32Value();

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3078:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’

npm ERR! 3078 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;

npm ERR! | ^~~~~~~~~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3078:40: note: candidate expects 1 argument, 0 provided

npm ERR! ../src/bindings.cc: In static member function ‘static void NodeInotify::Inotify::Callback(uv_poll_t*, int, int)’:

npm ERR! ../src/bindings.cc:262:86: error: no matching function for call to ‘v8::Object::Set(v8::Localv8::String, Nan::imp::IntegerFactoryv8::Integer::return_t)’

npm ERR! 262 | obj->Set(Nan::New("watch").ToLocalChecked(), Nan::New(event->wd));

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3926:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, v8::Localv8::Value, v8::Localv8::Value)’

npm ERR! 3926 | V8_WARN_UNUSED_RESULT Maybe Set(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3926:37: note: candidate expects 3 arguments, 2 provided

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3929:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, uint32_t, v8::Localv8::Value)’

npm ERR! 3929 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3929:37: note: candidate expects 3 arguments, 2 provided

npm ERR! ../src/bindings.cc:263:87: error: no matching function for call to ‘v8::Object::Set(v8::Localv8::String, Nan::imp::IntegerFactoryv8::Integer::return_t)’

npm ERR! 263 | obj->Set(Nan::New("mask").ToLocalChecked(), Nan::New(event->mask));

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3926:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, v8::Localv8::Value, v8::Localv8::Value)’

npm ERR! 3926 | V8_WARN_UNUSED_RESULT Maybe Set(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3926:37: note: candidate expects 3 arguments, 2 provided

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3929:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, uint32_t, v8::Localv8::Value)’

npm ERR! 3929 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3929:37: note: candidate expects 3 arguments, 2 provided

npm ERR! ../src/bindings.cc:264:91: error: no matching function for call to ‘v8::Object::Set(v8::Localv8::String, Nan::imp::IntegerFactoryv8::Integer::return_t)’

npm ERR! 264 | obj->Set(Nan::New("cookie").ToLocalChecked(), Nan::New(event->cookie));

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3926:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, v8::Localv8::Value, v8::Localv8::Value)’

npm ERR! 3926 | V8_WARN_UNUSED_RESULT Maybe Set(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3926:37: note: candidate expects 3 arguments, 2 provided

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3929:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, uint32_t, v8::Localv8::Value)’

npm ERR! 3929 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3929:37: note: candidate expects 3 arguments, 2 provided

npm ERR! ../src/bindings.cc:267:104: error: no matching function for call to ‘v8::Object::Set(v8::Localv8::String, v8::Localv8::String)’

npm ERR! 267 | obj->Set(Nan::New("name").ToLocalChecked(), Nan::New(event->name).ToLocalChecked());

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3926:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, v8::Localv8::Value, v8::Localv8::Value)’

npm ERR! 3926 | V8_WARN_UNUSED_RESULT Maybe Set(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3926:37: note: candidate expects 3 arguments, 2 provided

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3929:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, uint32_t, v8::Localv8::Value)’

npm ERR! 3929 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3929:37: note: candidate expects 3 arguments, 2 provided

npm ERR! ../src/bindings.cc:275:66: error: no matching function for call to ‘v8::Object::Get(Nan::imp::IntegerFactoryv8::Integer::return_t)’

npm ERR! 275 | Local value = handle->Get(Nan::New(event->wd));

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3973:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’

npm ERR! 3973 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3973:43: note: candidate expects 2 arguments, 1 provided

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3976:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’

npm ERR! 3976 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,

npm ERR! | ^~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3976:43: note: candidate expects 2 arguments, 1 provided

npm ERR! ../src/bindings.cc:279:34: warning: ‘v8::Localv8::Value Nan::Callback::Call(v8::Localv8::Object, int, v8::Localv8::Value*) const’ is deprecated [-Wdeprecated-declarations]

npm ERR! 279 | callback.Call(handle, 1, argv);

npm ERR! | ^

npm ERR! In file included from ../src/node_inotify.h:14,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! ../../nan/nan.h:1720:3: note: declared here

npm ERR! 1720 | Call(v8::Localv8::Object target

npm ERR! | ^~~~

npm ERR! ../src/bindings.cc:285:34: error: no matching function for call to ‘v8::Value::ToString()’

npm ERR! 285 | handle->Delete(wd->ToString());

npm ERR! | ^

npm ERR! In file included from /app/.cache/node-gyp/16.2.0/include/node/node.h:63,

npm ERR! from ../src/node_inotify.h:5,

npm ERR! from ../src/bindings.h:4,

npm ERR! from ../src/bindings.cc:2:

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3019:44: note: candidate: ‘v8::MaybeLocalv8::String v8::Value::ToString(v8::Localv8::Context) const’

npm ERR! 3019 | V8_WARN_UNUSED_RESULT MaybeLocal ToString(

npm ERR! | ^~~~~~~~

npm ERR! /app/.cache/node-gyp/16.2.0/include/node/v8.h:3019:44: note: candidate expects 1 argument, 0 provided

npm ERR! make: *** [inotify.target.mk:114: Release/obj.target/inotify/src/bindings.o] Error 1

npm ERR! gyp ERR! build error

npm ERR! gyp ERR! stack Error: make failed with exit code: 2

npm ERR! gyp ERR! stack at ChildProcess.onExit (/tmp/build_c757d048/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)

npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:365:28)

npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

npm ERR! gyp ERR! System Linux 4.4.0-1088-aws

npm ERR! gyp ERR! command "/tmp/build_c757d048/.heroku/node/bin/node" "/tmp/build_c757d048/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

npm ERR! gyp ERR! cwd /tmp/build_c757d048/node_modules/inotify

npm ERR! gyp ERR! node -v v16.2.0

npm ERR! gyp ERR! node-gyp -v v7.1.2

npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:

npm ERR! /tmp/npmcache.DnsWO/_logs/2021-06-05T19_31_08_766Z-debug.log

-----> Build failed

We're sorry this build is failing! You can troubleshoot common issues here:

https://devcenter.heroku.com/articles/troubleshooting-node-deploys

If you're stuck, please submit a ticket so we can help:

https://help.heroku.com/

Love,

Heroku

! Push rejected, failed to compile Node.js app.

! Push failed`

package.json
{ "name": "butik", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "start": "node index.js", "dev": "nodemon index.js" }, "engines": { "node": "16.2.0", "npm": "7.13.0" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "assert": "^2.0.0", "body-parser": "^1.19.0", "crypto": "^1.0.1", "dev": "^0.1.3", "ejs": "^3.1.6", "events": "^3.3.0", "express": "^4.17.1", "express-validator": "^6.11.1", "file-system": "^1.2.2", "google-auth-library": "^7.0.4", "heroku": "^7.54.0", "lodash": "^4.17.21", "method-override": "^3.0.0", "mongodb": "^3.6.6", "mongoose": "^5.12.5", "mtn-momo": "^2.0.0", "multer": "^1.4.2", "multer-gridfs-storage": "^4.2.0", "nedb": "^1.8.0", "nexmo": "^2.9.1", "node-fetch": "^2.6.1", "nodemailer": "^6.6.1", "nodemon": "^2.0.7", "override": "0.0.1", "path": "^0.12.7", "pug": "^3.0.2", "sequelize": "^6.6.2", "serve-favicon": "^2.5.0", "soket.io": "0.0.1-security", "vercel": "^23.0.0" } }

the project link : https://github.com/Jonathan-zihindula/butik004

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

No branches or pull requests

3 participants