the rpc in discordjs uses [email protected] seems to be installing forever
the rpc in discordjs uses [email protected]
which seems to be installing forever
21 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!not really sure what you mean
assuming you're referring to
discord-rpc
, it doesn't depend on electron nor anything that depends on electron
either way this also wouldn't be an issue with discord-rpc
itself, nor something we would be able to help withGitHub
GitHub - discordjs/RPC: A simple RPC client for Discord
A simple RPC client for Discord. Contribute to discordjs/RPC development by creating an account on GitHub.
is it that you're installing from github directly for whatever reason?
wdym installing from github ?
The whole thing in the project depends on Electron
or am i wrong
it doesn't, no
electron appears to be used in the example
this is why it's only listed as a dev dependency
when installing
discord-rpc
, it won't be using electron on its own
you are free to use electron as you pleaseThat appears to be the only example
is it possible to be used without electron
yes, the example only uses electron to produce this
it's not used in the actual rpc client
the readme shows a minimal example that doesn't use electron
thye minimal example do you mean the "### Browser Example" section in the readme ?
yes
but which file to run in this case ?
I'm not exactly sure what you're asking
discord-rpc
is a package for you to use in your code
what file you run is entirely up to youso the github project
is not needed
if im not going to use electron
it's the source from which the package is published
you wouldn't be installing from github
none of this has anything to do with whether or not you're using electron
so its should be used via
npm
npm
discord-rpc
A simple RPC client for Discord. Latest version: 4.0.1, last published: 2 years ago. Start using discord-rpc in your project by running
npm i discord-rpc
. There are 68 other projects in the npm registry using discord-rpc.?
sure, or whatever package manager you prefer
okay i installed through npm
Wouldn't RPC now be undefined because there is no import for the package ?
I suppose you're right, it's not a 100% complete example, but it's fairly unmaintained atm, so I'm not sure if the example will be updated
this is however something that you should know how to do
I mean i might be able to figured it out, until then i will post a message here
any idea about this error ?
does this code run on the browser
or node ?
I'm so confused
in the readme it says browser example