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

Installation fails - any ideas? #129

Open
connecteev opened this issue Sep 13, 2023 · 2 comments
Open

Installation fails - any ideas? #129

connecteev opened this issue Sep 13, 2023 · 2 comments

Comments

@connecteev
Copy link

MacOS v 12.5
Node version: v20.3.0


npm install
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10.
npm WARN deprecated [email protected]: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Please upgrade to v7.0.2+ of superagent.  We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing.  See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
npm ERR! code 1
npm ERR! path /Users/connecteev/Code/web/__Herd/audiogram_nypublicradio/node_modules/canvas
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! SOLINK_MODULE(target) Release/canvas-postbuild.node
npm ERR!   CXX(target) Release/obj.target/canvas/src/Canvas.o
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] | darwin | arm64
npm ERR! gyp info find Python using Python version 3.11.4 found at "/opt/homebrew/opt/[email protected]/bin/python3.11"
npm ERR! gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.11
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/opt/homebrew/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   '/Users/connecteev/Code/web/__Herd/audiogram_nypublicradio/node_modules/canvas/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/connecteev/Library/Caches/node-gyp/20.3.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=/Users/connecteev/Library/Caches/node-gyp/20.3.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/connecteev/Library/Caches/node-gyp/20.3.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/connecteev/Code/web/__Herd/audiogram_nypublicradio/node_modules/canvas',
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/Canvas.cc:16:
npm ERR! In file included from ../src/Canvas.h:18:
npm ERR! ../../nan/nan.h:688:39: warning: 'IdleNotificationDeadline' is deprecated: Use MemoryPressureNotification() to influence the GC schedule. [-Wdeprecated-declarations]
npm ERR!     return v8::Isolate::GetCurrent()->IdleNotificationDeadline(
npm ERR!                                       ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-isolate.h:1291:3: note: 'IdleNotificationDeadline' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATE_SOON(
npm ERR!   ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8config.h:550:39: note: expanded from macro 'V8_DEPRECATE_SOON'
npm ERR! # define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
npm ERR!                                       ^
npm ERR! ../src/Canvas.cc:71:75: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!   Nan::Set(target, Nan::New("Canvas").ToLocalChecked(), ctor->GetFunction());
npm ERR!                                                         ~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-template.h:497:46: note: 'GetFunction' declared here
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!                                              ^
npm ERR! ../src/Canvas.cc:71:3: error: no matching function for call to 'Set'
npm ERR!   Nan::Set(target, Nan::New("Canvas").ToLocalChecked(), ctor->GetFunction());
npm ERR!   ^~~~~~~~
npm ERR! ../../nan/nan_maybe_43_inl.h:74:20: note: candidate function not viable: no known conversion from 'MaybeLocal<v8::Function>' to 'v8::Local<v8::Value>' for 3rd argument
npm ERR! inline Maybe<bool> Set(
npm ERR!                    ^
npm ERR! ../../nan/nan_maybe_43_inl.h:83:20: note: candidate function not viable: no known conversion from 'Local<v8::String>' to 'uint32_t' (aka 'unsigned int') for 2nd argument
npm ERR! inline Maybe<bool> Set(
npm ERR!                    ^
npm ERR! ../src/Canvas.cc:85:57: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!   if (info[0]->IsNumber()) width = info[0]->Uint32Value();
npm ERR!                                    ~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-value.h:426:41: note: 'Uint32Value' declared here
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
npm ERR!                                         ^
npm ERR! ../src/Canvas.cc:85:36: error: assigning to 'int' from incompatible type 'Maybe<uint32_t>' (aka 'Maybe<unsigned int>')
npm ERR!   if (info[0]->IsNumber()) width = info[0]->Uint32Value();
npm ERR!                                    ^~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/Canvas.cc:86:58: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!   if (info[1]->IsNumber()) height = info[1]->Uint32Value();
npm ERR!                                     ~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-value.h:426:41: note: 'Uint32Value' declared here
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
npm ERR!                                         ^
npm ERR! ../src/Canvas.cc:86:37: error: assigning to 'int' from incompatible type 'Maybe<uint32_t>' (aka 'Maybe<unsigned int>')
npm ERR!   if (info[1]->IsNumber()) height = info[1]->Uint32Value();
npm ERR!                                     ^~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/Canvas.cc:87:51: error: no matching conversion for functional-style cast from 'v8::Local<v8::Value>' to 'String::Utf8Value'
npm ERR!   if (info[2]->IsString()) type = !strcmp("pdf", *String::Utf8Value(info[2]))
npm ERR!                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-primitive.h:526:5: note: candidate constructor not viable: no known conversion from 'v8::Local<v8::Value>' to 'const v8::String::Utf8Value' for 1st argument
npm ERR!     Utf8Value(const Utf8Value&) = delete;
npm ERR!     ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-primitive.h:519:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
npm ERR!     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
npm ERR!     ^
npm ERR! ../src/Canvas.cc:89:23: error: no matching conversion for functional-style cast from 'v8::Local<v8::Value>' to 'String::Utf8Value'
npm ERR!     : !strcmp("svg", *String::Utf8Value(info[2]))
npm ERR!                       ^~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-primitive.h:526:5: note: candidate constructor not viable: no known conversion from 'v8::Local<v8::Value>' to 'const v8::String::Utf8Value' for 1st argument
npm ERR!     Utf8Value(const Utf8Value&) = delete;
npm ERR!     ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-primitive.h:519:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
npm ERR!     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
npm ERR!     ^
npm ERR! ../src/Canvas.cc:130:40: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!     canvas->width = value->Uint32Value();
npm ERR!                     ~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-value.h:426:41: note: 'Uint32Value' declared here
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
npm ERR!                                         ^
npm ERR! ../src/Canvas.cc:130:21: error: assigning to 'int' from incompatible type 'Maybe<uint32_t>' (aka 'Maybe<unsigned int>')
npm ERR!     canvas->width = value->Uint32Value();
npm ERR!                     ^~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/Canvas.cc:151:41: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!     canvas->height = value->Uint32Value();
npm ERR!                      ~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-value.h:426:41: note: 'Uint32Value' declared here
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
npm ERR!                                         ^
npm ERR! ../src/Canvas.cc:151:22: error: assigning to 'int' from incompatible type 'Maybe<uint32_t>' (aka 'Maybe<unsigned int>')
npm ERR!     canvas->height = value->Uint32Value();
npm ERR!                      ^~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/Canvas.cc:232:19: warning: 'Call' is deprecated [-Wdeprecated-declarations]
npm ERR!     closure->pfn->Call(1, argv);
npm ERR!                   ^
npm ERR! ../../nan/nan.h:1747:3: note: 'Call' has been explicitly marked deprecated here
npm ERR!   NAN_DEPRECATED inline v8::Local<v8::Value>
npm ERR!   ^
npm ERR! ../../nan/nan.h:112:40: note: expanded from macro 'NAN_DEPRECATED'
npm ERR! # define NAN_DEPRECATED __attribute__((deprecated))
npm ERR!                                        ^
npm ERR! ../src/Canvas.cc:237:19: warning: 'Call' is deprecated [-Wdeprecated-declarations]
npm ERR!     closure->pfn->Call(2, argv);
npm ERR!                   ^
npm ERR! ../../nan/nan.h:1747:3: note: 'Call' has been explicitly marked deprecated here
npm ERR!   NAN_DEPRECATED inline v8::Local<v8::Value>
npm ERR!   ^
npm ERR! ../../nan/nan.h:112:40: note: expanded from macro 'NAN_DEPRECATED'
npm ERR! # define NAN_DEPRECATED __attribute__((deprecated))
npm ERR!                                        ^
npm ERR! ../src/Canvas.cc:285:52: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!           compression_level = info[1]->Uint32Value();
npm ERR!                               ~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-value.h:426:41: note: 'Uint32Value' declared here
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
npm ERR!                                         ^
npm ERR! ../src/Canvas.cc:285:31: error: assigning to 'uint32_t' (aka 'unsigned int') from incompatible type 'Maybe<uint32_t>' (aka 'Maybe<unsigned int>')
npm ERR!           compression_level = info[1]->Uint32Value();
npm ERR!                               ^~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/Canvas.cc:290:49: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!             uint32_t tmp = info[1]->Uint32Value();
npm ERR!                            ~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-value.h:426:41: note: 'Uint32Value' declared here
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
npm ERR!                                         ^
npm ERR! ../src/Canvas.cc:290:22: error: no viable conversion from 'Maybe<uint32_t>' (aka 'Maybe<unsigned int>') to 'uint32_t' (aka 'unsigned int')
npm ERR!             uint32_t tmp = info[1]->Uint32Value();
npm ERR!                      ^     ~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/Canvas.cc:312:39: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!         filter = info[2]->Uint32Value();
npm ERR!                  ~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-value.h:426:41: note: 'Uint32Value' declared here
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
npm ERR!                                         ^
npm ERR! ../src/Canvas.cc:312:18: error: assigning to 'uint32_t' (aka 'unsigned int') from incompatible type 'Maybe<uint32_t>' (aka 'Maybe<unsigned int>')
npm ERR!         filter = info[2]->Uint32Value();
npm ERR!                  ^~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/Canvas.cc:356:14: error: no matching constructor for initialization of 'v8::TryCatch'
npm ERR!     TryCatch try_catch;
npm ERR!              ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-exception.h:66:12: note: candidate constructor not viable: requires single argument 'isolate', but no arguments were provided
npm ERR!   explicit TryCatch(Isolate* isolate);
npm ERR!            ^
npm ERR! /Users/connecteev/Library/Caches/node-gyp/20.3.0/include/node/v8-exception.h:172:3: note: candidate constructor not viable: requires 1 argument, but 0 were provided
npm ERR!   TryCatch(const TryCatch&) = delete;
npm ERR!   ^
npm ERR! ../src/Canvas.cc:388:8: warning: 'MakeCallback' is deprecated [-Wdeprecated-declarations]
npm ERR!   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), (v8::Local<v8::Function>)closure->fn, 3, argv);
npm ERR!        ^
npm ERR! ../../nan/nan.h:1032:3: note: 'MakeCallback' has been explicitly marked deprecated here
npm ERR!   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
npm ERR!   ^
npm ERR! ../../nan/nan.h:112:40: note: expanded from macro 'NAN_DEPRECATED'
npm ERR! # define NAN_DEPRECATED __attribute__((deprecated))
npm ERR!                                        ^
npm ERR! fatal error: too many errors emitted, stopping now [-ferror-limit=]
npm ERR! 4 warnings and 20 errors generated.
npm ERR! make: *** [Release/obj.target/canvas/src/Canvas.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 (/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:511:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Darwin 21.6.0
npm ERR! gyp ERR! command "/opt/homebrew/Cellar/node/20.3.0_1/bin/node" "/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/connecteev/Code/web/__Herd/audiogram_nypublicradio/node_modules/canvas
npm ERR! gyp ERR! node -v v20.3.0
npm ERR! gyp ERR! node-gyp -v v9.4.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /Users/connecteev/.npm/_logs/2023-09-13T14_05_15_656Z-debug-0.log

@meghavarshini
Copy link

I am facing this issue as well

@iwoolf
Copy link

iwoolf commented Oct 30, 2024

And me. Is there any other project that's similar?

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