Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when trying to use any command #17

Closed
xhatz opened this issue Oct 1, 2022 · 2 comments
Closed

Errors when trying to use any command #17

xhatz opened this issue Oct 1, 2022 · 2 comments
Assignees

Comments

@xhatz
Copy link

xhatz commented Oct 1, 2022

Hello! First of all thank you for your work, it's exactly what I've been looking for for a while! I have an error, however, when I run the command "node register.js" on my shared hosting (which supports nodejs apps). Here is the output of that command:

[bots/syncbot (16)] [####@delaware syncbot]$ node register.js
Started refreshing application (/) commands.
TypeError: Cannot destructure property 'exports' of 'undefined' as it is undefined.
    at new Parser (/home/####/bots/syncbot/node_modules/undici/lib/client.js:405:34)
    at connect (/home/####/bots/syncbot/node_modules/undici/lib/client.js:1062:23)
/home/####/bots/syncbot/node_modules/undici/lib/client.js:1167
        if (socket[kParser].timeoutType !== TIMEOUT_IDLE) {
                            ^

TypeError: Cannot read properties of undefined (reading 'timeoutType')
    at _resume (/home/####/bots/syncbot/node_modules/undici/lib/client.js:1167:29)
    at resume (/home/####/bots/syncbot/node_modules/undici/lib/client.js:1131:3)
    at connect (/home/####/bots/syncbot/node_modules/undici/lib/client.js:1116:3)

I'm very newbie to nodejs, I have no idea what any of this means haha. I really hope you can help me. Thank you again!

@jonathonor jonathonor self-assigned this Oct 21, 2022
@jonathonor
Copy link
Owner

Have you made sure that you ran
npm install

Specifically

npm install discord.js @discordjs/rest discord-api-types axios

@jonathonor
Copy link
Owner

Closing the issue, this ended up being a permissions issue for @xhatz because they were trying to run the commands through cpanel terminal instead of the VM terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants