aheckmann / m

mongodb version management
MIT License
267 stars 55 forks source link

Not able to run m commands (Windows) #84

Closed pstrings closed 1 year ago

pstrings commented 1 year ago

I have the m file in the path that the command is trying to access but instead it's throwing an error. image

Here's the file in the exact path. image

Batega21 commented 1 year ago

Hello, I have the same issue. Steps I made: Added the path to the "Path" environment variables Open a new terminal (Powershell and CMD)

My path: C:\Users\myName\AppData\Roaming\npm\node_modules\m\bin

stennie commented 1 year ago

I currently don't have ready access to a Windows environment for testing, but finding commands in the path isn't specific to m. The solution would be to add the expected directory to the PATH environment variable for your operating system & shell environment.

I would also caveat that m is generally tested in macOS and Linux environments. If you find any problems in Windows, a Git issue (or better yet, pull request) would be helpful.

Regards, Stennie