Closed flantig closed 7 years ago
Number of issues I see with the output:
npm init
? package.json should appear in the same directory where you execute npm init
.node_modules
directory, which is usually not the place you want to run the installation in. I suggest create a new folder, call it spoiler-bot
or similar, and run npm init
and npm install ...
inside it.You're right, it was an outdated node.js. I had installed the wrong one. I'm literally an idiot. You don't happen to have a donation button?
On Mar 7, 2017 11:59 AM, "Tim K." notifications@github.com wrote:
Closed #8 https://github.com/TimboKZ/discord-spoiler-bot/issues/8.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TimboKZ/discord-spoiler-bot/issues/8#event-989929525, or mute the thread https://github.com/notifications/unsubscribe-auth/AZCgg7MhyaKAtVCZYjIKitLrhMrxY-hwks5rjYzhgaJpZM4MVuhH .
Sadly, I don't. Thanks for the consideration though!
I was able to get your bot running on windows but for some reason I get this error message when I try installing it on Ubuntu. I followed all of the prerequisate steps (for some reason on that page the command they give does not install npm or node, that has to be done seperately). Running the code does succesfully create a discord-spoiler bot folder as well. Running the index.js gives me another error message different from what you see here but it also includes a lack of package.json. Which package.json is it asking for?
ownagecat@ownagecat-desktop:~/node_modules$ npm install discord-spoiler-bot --save
loadDep:gifencoder → reso ▄ ╢██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine discord.js@11.0.0: wanted: {"node":">=6.0.0"} (current: {"node":"4.2npm WARN saveError ENOENT: no such file or directory, open '/home/ownagecat/package.json' npm WARN enoent ENOENT: no such file or directory, open '/home/ownagecat/package.json' npm WARN discord.js@11.0.0 requires a peer of erlpack@hammerandchisel/erlpack#master but none was installed. npm WARN discord.js@11.0.0 requires a peer of node-opus@^0.2.0 but none was installed. npm WARN discord.js@11.0.0 requires a peer of opusscript@^0.0.1 but none was installed. npm WARN discord.js@11.0.0 requires a peer of uws@^0.12.0 but none was installed. npm WARN ownagecat No description npm WARN ownagecat No repository field. npm WARN ownagecat No README data npm WARN ownagecat No license field. ownagecat@ownagecat-desktop:~/node_modules$