- Oct 30, 2017
- 4
- 0
- 1
I initially downloaded the node.js software so that I could create my own bot in Discord (Unrelated).
In doing so, I began the process of this form https://medium.com/@renesansz/tutorial-creating-a-simple-discord-bot-9465a2764dc0.
The process where it says run "npm install discord.io winston --save" in the command prompt, wasn't working. Honestly, I don't have much knowledge in Nodes in javascript, so I began to research on why it didn't work. Essentially, I changed the PATH in my environment variables in my system to the destination I wanted them downloaded for my bot.
That didn't work..
So I went back to researching, and I noticed a file called npmrc in the node.js folder, where there i changed the prefix=" " section in the notepad. (oops)
(I think) that's what caused the error I'm receiving now in the command prompt when I try to access ANYTHING npm related. (see link below)
https://imgur.com/a/vaE43
I've tried a number of things to fix this:
I'd also like to note that the first like after npm -v in the image, it references a location that no longer exists (D:\Bot_folder_(discord)\Greeter=). This location is what I originally replaced the PATH with, and what was in the prefix section in the npmrc folder.
Thanks in advance to everyone that helps!!
In doing so, I began the process of this form https://medium.com/@renesansz/tutorial-creating-a-simple-discord-bot-9465a2764dc0.
The process where it says run "npm install discord.io winston --save" in the command prompt, wasn't working. Honestly, I don't have much knowledge in Nodes in javascript, so I began to research on why it didn't work. Essentially, I changed the PATH in my environment variables in my system to the destination I wanted them downloaded for my bot.
That didn't work..
So I went back to researching, and I noticed a file called npmrc in the node.js folder, where there i changed the prefix=" " section in the notepad. (oops)
(I think) that's what caused the error I'm receiving now in the command prompt when I try to access ANYTHING npm related. (see link below)
https://imgur.com/a/vaE43
I've tried a number of things to fix this:
- looking at the code files where the errors are reporting and couldn't conclude much of anything
- uninstalling and reinstalling node.js
- deleting ALL files related to node.js and doing the above.
- resetting the file I messed with
- googling the **** out of essentially everything, not much came up relating to this issue.
- resetting the PATH environment variables to their defaults
- Probably others I've forgotten by now
I'd also like to note that the first like after npm -v in the image, it references a location that no longer exists (D:\Bot_folder_(discord)\Greeter=). This location is what I originally replaced the PATH with, and what was in the prefix section in the npmrc folder.
Thanks in advance to everyone that helps!!