#RequestError connect EACCES
19 messages · Page 1 of 1 (latest)
This isnt a djs issue, its coming from whatever http-timer is
No idea what that is
Yeah me neither but its something your bot uses
npm why @szmarczak/http-timer to find out which of your packages uses that
npm ERR! No dependencies found matching @szmarczak/http-timer
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-03-16T14_52_21_071Z-debug-0.log
I don't have/use any of the above modules. I have no idea why the error is suddenly there. My system is ubunto and the code is pure djs code
Did you run that command in your Zoe folder?
npm rm it then (and/or show your package.json)
not working
{
"name": "zoe",
"version": "1.0.0",
"description": "",
"main": "src/index.js",
"scripts": {
"start": "pm2 start bot.config.js --attach",
"restart": "pm2 restart all",
"stop": "pm2 delete all"
},
"author": "Place.2#1301",
"license": "ISC",
"dependencies": {
"@discordjs/builders": "^1.5.0",
"@discordjs/rest": "^1.6.0",
"@iamtraction/google-translate": "^2.0.1",
"axios": "^0.27.2",
"body-parser": "^1.20.1",
"canvas": "^2.11.0",
"cookie-parser": "^1.4.6",
"discord-api-types": "^0.37.21",
"discord.js": "^14.8.0",
"ejs": "^3.1.8",
"express": "^4.18.2",
"http": "^0.0.1-security",
"https": "^1.0.0",
"moment": "^2.29.1",
"morgan": "^1.10.0",
"ms": "^2.1.3",
"mysql": "^2.18.1",
"node-superfetch": "^0.2.3",
"pm2": "^5.2.0",
"showdown": "^2.1.0",
"topgg-autoposter": "^2.0.1",
"utf8": "^3.0.0"
}
}
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm ERR! code EACCES
npm ERR! syscall connect
npm ERR! errno EACCES
npm ERR! FetchError: request to https://registry.npmjs.org/commander/-/commander-9.5.0.tgz failed, reason: connect EACCES A-RANDOM-IP:443
npm ERR! at ClientRequest.<anonymous> (/usr/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
npm ERR! at ClientRequest.emit (node:events:513:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:502:9)
npm ERR! at TLSSocket.emit (node:events:525:35)
npm ERR! at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
npm ERR! FetchError: request to https://registry.npmjs.org/commander/-/commander-9.5.0.tgz failed, reason: connect EACCES 2606:4700::6810:1723:443
npm ERR! at ClientRequest.<anonymous> (/usr/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
npm ERR! at ClientRequest.emit (node:events:513:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:502:9)
npm ERR! at TLSSocket.emit (node:events:525:35)
npm ERR! at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
npm ERR! code: 'EACCES',
npm ERR! errno: 'EACCES',
npm ERR! syscall: 'connect',
npm ERR! address: '2606:4700::6810:1723',
npm ERR! port: 443,
npm ERR! type: 'system'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
the error text makes no sense
Seems like a network/DNS issue. It can’t reach the address it resolved npmjs to
Also we don’t support TOS violations
What?
The cracked google translate package you use there