bitpay / bitcore

A full stack for bitcoin and blockchain-based applications
https://bitcore.io/
MIT License
4.83k stars 2.08k forks source link

npm run build fail #3473

Open Lbt777 opened 1 year ago

Lbt777 commented 1 year ago

node v16.13.0 `1) ECDSA signing and verification

verify

       should verify a valid signature, and unverify an invalid signature:
 TypeError: Cannot read properties of undefined (reading 'gt')
  at ECDSA.sigError (lib\crypto\ecdsa.js:168:11)
  at ECDSA.verify (lib\crypto\ecdsa.js:271:13)
  at Function.ECDSA.verify (lib\crypto\ecdsa.js:293:6)
  at Context.<anonymous> (test\crypto\ecdsa.js:261:15)
  at callFn (node_modules\_mocha@6.2.3@mocha\lib\runnable.js:387:21)
  at Test.Runnable.run (node_modules\_mocha@6.2.3@mocha\lib\runnable.js:379:7)
  at C:\Users\Administrator\Desktop\bitcore-lib\node_modules\_mocha@6.2.3@mocha\lib\runner.js:653:12
  at next (node_modules\_mocha@6.2.3@mocha\lib\runner.js:447:14)
  at C:\Users\Administrator\Desktop\bitcore-lib\node_modules\_mocha@6.2.3@mocha\lib\runner.js:457:7
  at next (node_modules\_mocha@6.2.3@mocha\lib\runner.js:362:14)
  at Immediate._onImmediate (node_modules\_mocha@6.2.3@mocha\lib\runner.js:425:5)
  at processImmediate (node:internal/timers:464:21)

[09:39:02] 'testmocha' errored after 15 s [09:39:02] Error in plugin "gulp-mocha" Message: There were test failures Details: domainEmitter: [object Object] domainThrown: false

[09:39:02] 'default' errored after 15 s`

kajoseph commented 1 year ago

Please try with Node v12. We haven't added support for v16 yet

Lbt777 commented 1 year ago

Please try with Node v12. We haven't added support for v16 yet The same question How to solve the problem thanks

image