react-piano
react-piano copied to clipboard
npm install fails
Hi all, I have attached build log.
I forked the repo and did a npm install and got the following errors:
Quick summary: npm ERR! In file included from ../src/common/allocator.cc:1: npm ERR! In file included from ../../nan/nan.h:174: npm ERR! ../../nan/nan_callbacks.h:55:23: error: no member named 'AccessorSignature' in namespace 'v8' npm ERR! typedef v8::Localv8::AccessorSignature Sig; npm ERR! ~~~~^ npm ERR! In file included from ../src/common/allocator.cc:1: npm ERR! ../../nan/nan.h:2536:8: error: no matching member function for call to 'SetAccessor' npm ERR! tpl->SetAccessor( npm ERR! ~~~~~^~~~~~~~~~~ npm ERR! /Users/paulwilkinson/Library/Caches/node-gyp/19.3.0/include/node/v8-template.h:814:8: note: candidate function not viable: no known conversion from 'imp::Sig' (aka 'int') to 'v8::SideEffectType' for 7th argument npm ERR! void SetAccessor( npm ERR! ^ npm ERR! /Users/paulwilkinson/Library/Caches/node-gyp/19.3.0/include/node/v8-template.h:807:8: note: candidate function not viable: no known conversion from 'imp::NativeGetter' (aka 'void ()(v8::Localv8::Name, const v8::PropertyCallbackInfov8::Value &)') to 'v8::AccessorGetterCallback' (aka 'void ()(Localv8::String, const PropertyCallbackInfov8::Value &)') for 2nd argument npm ERR! void SetAccessor( npm ERR! ^ npm ERR! In file included from ../src/common/allocator.cc:1: npm ERR! In file included from ../../nan/nan.h:2884: npm ERR! ../../nan/nan_typedarray_contents.h:34:43: error: no member named 'GetContents' in 'v8::ArrayBuffer' npm ERR! data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset; npm ERR! ~~~~~~~~^ npm ERR! 3 errors generated. 2023-01-03T18_26_32_656Z-debug-0.log
I hd the same issue and I'm assuming it needs an older version of node, but could not find out which since no version is specified. I tried using node 10 and while I still got some errors, I was able to build the package and serve the demo.