node-binance-api icon indicating copy to clipboard operation
node-binance-api copied to clipboard

Module not found: Can't resolve 'dns' in 'socks-proxy-agent'

Open amargoCactus opened this issue 5 years ago • 6 comments

I have installed the package and when i build the app i get this error

image

amargoCactus avatar Feb 17 '20 04:02 amargoCactus

thanks for the report! i've never used npm run build before, generally I just install the package and have require( 'node-binance-api' ) in my code

jaggedsoft avatar Feb 17 '20 13:02 jaggedsoft

Looks like you have your own custom project with a "scripts" parameter called "build" defined in your package.json?

Would you please provide that script's functionality?

It would also be helpful to include the code where you reference the node-binance-api library.

bmino avatar May 10 '20 20:05 bmino

I have the same problem. Attach the corresponding package.json

"dependencies": { "@nuxtjs/axios": "^5.12.5", "core-js": "^3.8.3", "nuxt": "^2.14.12", "node-binance-api": "^0.12.4" }

taewoo0282 avatar Feb 07 '21 01:02 taewoo0282

ERROR Failed to compile with 12 errors friendly-errors 10:59:16

These dependencies were not found: friendly-errors 10:59:16 friendly-errors 10:59:16

  • dns in ./node_modules/socks-proxy-agent/index.js friendly-errors 10:59:16
  • fs in ./node_modules/node-binance-api/node-binance-api.js, ./node_modules/request/lib/har.js friendly-errors 10:59:16
  • net in ./node_modules/forever-agent/index.js, ./node_modules/https-proxy-agent/index.js and 3 others friendly-errors 10:59:16
  • tls in ./node_modules/forever-agent/index.js, ./node_modules/https-proxy-agent/index.js and 2 others friendly-errors 10:59:16 friendly-errors 10:59:16 To install them, you can run: npm install --save dns fs net tls

taewoo0282 avatar Feb 07 '21 01:02 taewoo0282

Are these safe? DNS has vunerabilities.

peepo5 avatar Feb 10 '21 15:02 peepo5

nvm this module is too heavy and with no browser support. i use binance-api-node instead

peepo5 avatar Feb 16 '21 09:02 peepo5