[rospack] Error: no such package beginner_tutorials

[rospack] Error: no such package beginner_tutorials
I found this error during the process, and after pouring in the path, I couldn’t solve it, so I checked the workspace and found the beginner_tutorials file, so the problem is in the execution

catkin_create_pkg beginner_tutorials std_msgs rospy roscpp

The CD is not inside the src.
So if you find this problem, you can check the location of beginner_tutorials.
Solution: Just delete the beginner_tutorials and re-execute it.

Read More: