node-binance-api
node-binance-api copied to clipboard
Module not found: Can't resolve 'dns' in 'socks-proxy-agent'
I have installed the package and when i build the app i get this error
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
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.
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" }
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
Are these safe? DNS has vunerabilities.
nvm this module is too heavy and with no browser support. i use binance-api-node instead