using forge init throws an error #4076
-
hello, please i have been trying to use foundry, but whenever i use forge init it throws an error. please how do i resolve this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
i need the same error |
Beta Was this translation helpful? Give feedback.
-
i know the reason,because the folder is empty.https://book.getfoundry.sh/projects/working-on-an-existing-project |
Beta Was this translation helpful? Give feedback.
-
I success,the reason is git.you can try run 'git status' first,then run 'git add -u',and mkdir new empty folder,then run $ forge init --template https://github.com/foundry-rs/forge-template hello_template then,you can see the forge lib-std and sol will here. |
Beta Was this translation helpful? Give feedback.
I success,the reason is git.you can try run 'git status' first,then run 'git add -u',and mkdir new empty folder,then run
$ forge init --template https://github.com/foundry-rs/forge-template hello_template
then,you can see the forge lib-std and sol will here.