CarlyRaeJepsenS
@CarlyRaeJepsenS
0
seeyalaterwikidemoA
1
0
0
Screen Shot 2020-10-03 at 4.26.16 PM
This button loads forever. Is there any way to make it start again?
Coder100 Try hard-refreshing (ctrl + shift + r) and also report this to bugs! Jopefully, this doesn't happen again!
If it doesn't work, try doing it manually: Hit ctrl+shift+s:
git add .
git commit -m "[what you did]"
git remote add origin [URL].git
git push -u origin master
replace the brackets to whatever, so like:
git add .
git commit -m "added 1000 new spaces and comments"
git remote add origin https://github.com/myusrname/myrepo.git
git push -u origin master
`2 years ago
I tried to install the package "file-regex" today, and got this error:
Error: Cannot find module 'file-regex'
Require stack:
/home/runner/random-stuf
Node.js
PattanAhmed @CarlyRaeJepsenS Hi,
Are you installing a npm package and facing an error?
If so, Hit Ctrl + Shift + S in order to get into Repl.it Terminal.
And then try by this command:- npm install
> I am pretty sure that it might not work.
But you have to specify what you are doing like for better knowledge follow the attached website:-
https://docs.npmjs.com/cli/install
Check where is your package and what are the requirements.
That's it
Thanks!
Hope this helps3 years ago
function bTG(num) {
return num / Math.pow(10,9) //bytes to gb
}
console.log(bTG(os.freemem))
console.log(bTG(os.totalmem))
>> 1.775673344
>> 27.335
Node.js
Buhron You know, Replit System is like 1 TB (1000 GB) because of Nix. If Nix was removed from your repl, you would have 1 TB of repl storage8 months ago
ImagineEngine I guess this is because repl maybe hosts servers on the same physical device but different ports. Maybe this function tells the allocated RAM for the overall server. Im not sure about this please correct me if im wrong. :)2 years ago
CodeLongAndPros You'll need to use free | head -n 2 | tail -n 1 | awk '{print $2}' to get bytes free.3 years ago
https://repl.it/@CarlyRaeJepsenS/gli-forktery#server.js
This is the specific code in question:
app.post("/posts/input", async (req, res) => {
c
Coder100 Hello, this is because r is a string. Use req.body.
Code:
app.post("/posts/input", async (req, res) => {
console.log(req.body);
console.log(req)
console.log(req["body"])
//col.insertOne(req.body);
});
`3 years ago
Hello everyone, I recently imported a glitch project into replit. I see these files in my sidebar:
Screen Shot 2020-06-11 at 10.09.12 PM
Can I dele
Muffinlavania If i were you, i would delete ".e9vkfyit1exb". I don't know about other files, they all have things in them, but this one does not have anything, so its safe to delete it3 years ago
coderash Click the three dots next to them and select delete, say "yes delete the file". If this helped marked it as answered
3 years ago
I want to make a repl.it for my discord bot so when I push changes to github, the changes are pushed to the repl too. However, last time I tried to d
I'm running the linked repl -- it has a delay function in it. When I run the code, there's a bunch of green text that shows up. What is it for? Doe
Node.js
Geocube101 Green text shows the output of the last called function. In this case, what shows up is all data that the function setTimeout returns3 years ago
I'm trying to use typeof in a function, but it's not working. What am I doing wrong?
Here's my code: https://repl.it/join/vpxfyfaa-carlyraejepsens
Node.js
Vandesm14 Instead of string, do "string" or "number". The output of typeof always has the type of a string. So typeof typeof 1234 // "String" as the first will output "number" then the second will output a "string" because of the first's output.
> Please mark this as answered if I helped your problem 👍4 years ago
What's up guys, I'm trying to find the greatest number in an array with a loop. Although I could easily just use a function, I want to use a loop (fo
Node.js
ash15khng You could have a greatest variable, then for each item in the list check if the item is greater than greatest, and if it is replace greatest with the item.
greatest = 0;
arr3.forEach(function(element) {
if (element > greatest) {
greatest = element;
}
});
console.log(greatest);
`4 years ago