nodejs运行ethers.js错误类型UnhandledPromiseRejectionWarning: Error: name not found
这里错误的的原因是 Error: name not found,你的某些合约地址在初始化的时候为null而产生的错误,所以有时候真是没事自己找事!!!
D:\software\nodejs\node.exe D:\www\KirinProject\Business\UniappMakeMoneyFirstApp0512\mvc_model\modules\nodejs_blockchain\main_node.js
(node:15416) UnhandledPromiseRejectionWarning: Error: name not found
at D:\www\KirinProject\Business\UniappMakeMoneyFirstApp0512\mvc_model\modules\nodejs_blockchain\node_modules\ethers\contract.js27
at process._tickCallback (internal/process/next_tick.js7)
(node:15416) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15416) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
还没有评论,来说两句吧...