Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs

Unable to initialize cargo package


I am unable to use cargo to create a new project. When I execute 'cargo new guessinggame', it fails, and returns 'Failed to create package "guessinggame" at "home/runner/guessinggame"

Caused by:
could not determine the current user, please set $USER'
This also happens when I run 'cargo init' on an already extant directory. Does anybody know how to fix this?

3 years ago
You are viewing a single comment. View All

ok so to fix the user thing, I think you can just configure the run button to run the r program as normal with cargo or however you do it, but also adding before that the command export USER="/home/runner/repl_name" where repl_name in this case is Testingstuff. To configure the run button, you must make a file called .replit and then type in that file run="command" where command is the things you want it to do on run.

3 years ago