# Error using fpm to begin

**URL:** <https://fortran-lang.discourse.group/t/error-using-fpm-to-begin/8045>\
**Category:** fpm\
**Created:** [May 18, 2024, 5:48pm UTC](https://fortran-lang.discourse.group/t/error-using-fpm-to-begin/8045 "2024-05-18T17:48:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cobomm](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@cobomm](https://fortran-lang.discourse.group/u/cobomm)\
**Post date:** [May 18, 2024, 5:48pm UTC](https://fortran-lang.discourse.group/t/error-using-fpm-to-begin/8045/1 "2024-05-18T17:48:02Z")

</div>

I am trying to use fpm on MSYS2. But I had a problem following the first step of the tutorial on this website:  
[https://fpm.fortran-lang.org/](https://fpm.fortran-lang.org/)  
I created the test program with cmd in the MSYS2 folder on the C drive. A folder named first\_steps is generated with fpm.toml in it, but when I type fpm run, I get the following error:  
_cmd\_run_ Package error: ‘fpm.toml’ could not be found, check if the file exists  
STOP 1  
I don’t know how to solve this problem, can anyone help me please?

---

<div class="post-metadata">

**Author:** ![Ali](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ali/32/751_2.png) [@Ali](https://fortran-lang.discourse.group/u/Ali)\
**Post date:** [May 18, 2024, 6:08pm UTC](https://fortran-lang.discourse.group/t/error-using-fpm-to-begin/8045/2 "2024-05-18T18:08:11Z")

</div>

Ensure you are in the directory where `fpm.toml` is located. If you created the project in `first_steps`, make sure to navigate to this directory before running any `fpm` commands: `cd first_steps`.
