我正在尝试使用 npm 命令在 Ubuntu18.04 上安装 MyEtherWallet-v5.0.10,安装"wrtc@ 0.2.1"时失败了
节点版本 11.14.0
Npm 版本 6.7.0
CMake 版本 3.14.3
我已经通过nvm使用了节点版本8,10,11,12,全部失败
以下是一些日志:
...
> bufferutil@4.0.1 install /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/bufferutil
> node-gyp-build
> wrtc@0.2.1 install /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc
> node scripts/install.js
Searching for a pre-built wrtc binary
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 404 status code downloading tarball https://node-webrtc.s3.amazonaws.com/wrtc/v0.2.1/Release/node-v67-linux-x64.tar.gz
node-pre-gyp ERR! stack at Request.<anonymous> (/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/node-pre-gyp/lib/install.js:139:27)
node-pre-gyp ERR! stack at Request.emit (events.js:198:15)
node-pre-gyp ERR! stack at Request.onRequestResponse (/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/request/request.js:1066:10)
node-pre-gyp ERR! stack at ClientRequest.emit (events.js:193:13)
node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:560:23)
node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:113:17)
node-pre-gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:447:22)
node-pre-gyp ERR! stack at TLSSocket.emit (events.js:193:13)
node-pre-gyp ERR! stack at addChunk (_stream_readable.js:295:12)
node-pre-gyp ERR! stack at readableAddChunk (_stream_readable.js:276:11)
node-pre-gyp ERR! System Linux 4.4.0-43-Microsoft
node-pre-gyp ERR! command "/home/sintan1071/.nvm/versions/node/v11.14.0/bin/node" "/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc
node-pre-gyp ERR! node -v v11.14.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
404 status code downloading tarball https://node-webrtc.s3.amazonaws.com/wrtc/v0.2.1/Release/node-v67-linux-x64.tar.gz
Unable to install a pre-built wrtc binary; falling back to ncmake
Running ncmake configure
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.7.4")
Attempting to download WebRTC libraries and headers for platform "linux" and architecture "x64" from
https://github.com/mayeut/libwebrtc/releases/download/v1.1.1/libwebrtc-1.1.1.60-6294a7eb71c891e9ea41273a7a94113f6802d0da-linux-x64.tar.gz
Complete!
-- Downloading: https://nodejs.org/download/release/v11.14.0/SHASUMS256.txt
-- NodeJS: Using node, version v11.14.0
-- Downloading: https://nodejs.org/download/release/v11.14.0/node-v11.14.0-headers.tar.gz
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build
Running ncmake build
Scanning dependencies of target wrtc
[ 5%] Building CXX object CMakeFiles/wrtc.dir/src/binding.cc.o
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h:16:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventqueue.h:16,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/promisefulfillingeventloop.h:16,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/asyncobjectwrapwithloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/datachannel.h:24,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:10:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h: In lambda function:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/error.h:81:39: error: no matching function for call to ‘v8::Promise::Resolver::Resolve(v8::Local<v8::Value>)’
resolver->Resolve(tc.Exception());
^
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h:64:9: note: in expansion of macro ‘CONVERT_OR_REJECT_AND_RETURN’
CONVERT_OR_REJECT_AND_RETURN(resolver, error, value, v8::Local<v8::Value>);
^
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/node.h:63:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:8:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4216:39: note: candidate: v8::Maybe<bool> v8::Promise::Resolver::Resolve(v8::Local<v8::Context>, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Resolve(Local<Context> context,
^
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4216:39: note: candidate expects 2 arguments, 1 provided
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h:16:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventqueue.h:16,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/promisefulfillingeventloop.h:16,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/asyncobjectwrapwithloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/datachannel.h:24,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:10:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/error.h:87:71: error: no matching function for call to ‘v8::Promise::Resolver::Resolve(v8::Local<v8::Value>)’
resolver->Resolve(Nan::TypeError(Nan::New(error).ToLocalChecked()));
^
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h:64:9: note: in expansion of macro ‘CONVERT_OR_REJECT_AND_RETURN’
CONVERT_OR_REJECT_AND_RETURN(resolver, error, value, v8::Local<v8::Value>);
^
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/node.h:63:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:8:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4216:39: note: candidate: v8::Maybe<bool> v8::Promise::Resolver::Resolve(v8::Local<v8::Context>, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Resolve(Local<Context> context,
^
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4216:39: note: candidate expects 2 arguments, 1 provided
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventqueue.h:16:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/promisefulfillingeventloop.h:16,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/asyncobjectwrapwithloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/datachannel.h:24,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:10:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h:65:31: error: no matching function for call to ‘v8::Promise::Resolver::Reject(v8::Local<v8::Value>&)’
resolver->Reject(value);
^
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/node.h:63:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:8:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4219:39: note: candidate: v8::Maybe<bool> v8::Promise::Resolver::Reject(v8::Local<v8::Context>, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Reject(Local<Context> context,
^
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4219:39: note: candidate expects 2 arguments, 1 provided
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h:16:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventqueue.h:16,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/promisefulfillingeventloop.h:16,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/asyncobjectwrapwithloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/datachannel.h:24,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:10:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h: In lambda function:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/error.h:81:39: error: no matching function for call to ‘v8::Promise::Resolver::Resolve(v8::Local<v8::Value>)’
resolver->Resolve(tc.Exception());
^
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h:67:9: note: in expansion of macro ‘CONVERT_OR_REJECT_AND_RETURN’
CONVERT_OR_REJECT_AND_RETURN(resolver, result, value, v8::Local<v8::Value>);
^
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/node.h:63:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:8:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4216:39: note: candidate: v8::Maybe<bool> v8::Promise::Resolver::Resolve(v8::Local<v8::Context>, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Resolve(Local<Context> context,
^
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4216:39: note: candidate expects 2 arguments, 1 provided
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h:16:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventqueue.h:16,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/promisefulfillingeventloop.h:16,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/asyncobjectwrapwithloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/datachannel.h:24,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:10:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/error.h:87:71: error: no matching function for call to ‘v8::Promise::Resolver::Resolve(v8::Local<v8::Value>)’
resolver->Resolve(Nan::TypeError(Nan::New(error).ToLocalChecked()));
^
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h:67:9: note: in expansion of macro ‘CONVERT_OR_REJECT_AND_RETURN’
CONVERT_OR_REJECT_AND_RETURN(resolver, result, value, v8::Local<v8::Value>);
^
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/node.h:63:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:8:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4216:39: note: candidate: v8::Maybe<bool> v8::Promise::Resolver::Resolve(v8::Local<v8::Context>, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Resolve(Local<Context> context,
^
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4216:39: note: candidate expects 2 arguments, 1 provided
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventqueue.h:16:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/promisefulfillingeventloop.h:16,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/asyncobjectwrapwithloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/datachannel.h:24,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:10:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h:68:32: error: no matching function for call to ‘v8::Promise::Resolver::Resolve(v8::Local<v8::Value>&)’
resolver->Resolve(value);
^
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/node.h:63:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:8:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4216:39: note: candidate: v8::Maybe<bool> v8::Promise::Resolver::Resolve(v8::Local<v8::Context>, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Resolve(Local<Context> context,
^
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4216:39: note: candidate expects 2 arguments, 1 provided
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventqueue.h:16:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/eventloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/promisefulfillingeventloop.h:16,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/asyncobjectwrapwithloop.h:17,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/datachannel.h:24,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:10:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h: In static member function ‘static std::pair<v8::Local<v8::Promise::Resolver>, std::unique_ptr<node_webrtc::PromiseEvent<T, R, L> > > node_webrtc::PromiseEvent<T, R, L>::Create()’:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/events.h:83:86: error: no matching function for call to ‘v8::Promise::Resolver::New(v8::Isolate*)’
auto resolver = v8::Promise::Resolver::New(Nan::GetCurrentContext()->GetIsolate());
^
In file included from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/node.h:63:0,
from /mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/src/binding.cc:8:
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4204:55: note: candidate: static v8::MaybeLocal<v8::Promise::Resolver> v8::Promise::Resolver::New(v8::Local<v8::Context>)
static V8_WARN_UNUSED_RESULT MaybeLocal<Resolver> New(
^
/mnt/d/users/tanrenyuan/Documents/MyEtherWallet/node_modules/@myetherwallet/mewconnect-web-client/node_modules/wrtc/build/node/v11.14.0/include/v8.h:4204:55: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
CMakeFiles/wrtc.dir/build.make:62: recipe for target 'CMakeFiles/wrtc.dir/src/binding.cc.o' failed
make[2]: *** [CMakeFiles/wrtc.dir/src/binding.cc.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/wrtc.dir/all' failed
make[1]: *** [CMakeFiles/wrtc.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Build failed
Built wrtc
...
好吧,我希望你们知道如何解决这个问题,非常感谢
就我而言,我使用的是节点 16.xx .
错误不断出现,直到我意识到Node-webrtc
还不支持节点 16。
降级 nodejs 可以解决问题。
请务必在此处检查支持的版本
- 首先尝试跳过下载
-
尝试使用 :
{ SET SKIP_DOWLOAD=true }
-
然后
{npm install }