Ask coding questions

← Back to all posts
what i have to do here (in .replit file)
NITROOKIES (3)

'run' isn't configured in the .replit file
try adding 'run = "echo hello word"' to .replit

what i have to do here?

please give me an example.

Comments
hotnewtop
CodeLongAndPros (1589)

You have to make a file .replit and enter the text run="[command]", where command is a bash command or UNIX binary.

This is used to configure how you run your repl.

To run main with args 42:
run="./main 42

To run a python program:
run="python3 main.py"

Hope this helps!

sankalpmukim (0)

@CodeLongAndPros I got that much. I made my .replit file and configured everything. it still gives the same error.

sankalpmukim (0)

@CodeLongAndPros I just deleted and remade my .replit file, and the stupid thing started working.