I am trying to do the tutorial for Meteor JS but I can't get it to work properly using the Git Shell that comes with Github for Windows. It can't find the meteor command. It works in cmd and it is in the Windows environment path. What am I doing wrong?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
To run a
*.bat
command from MinGW's MSYS shell, you must redirect the execution tocmd.exe
, thus:The
foo.bat
command file must be in a directory within$PATH
, (or you must specify the full path name ... using slashes, not backslashes unless you use two of them for each path name separator). Also, note the double slash to informcmd.exe
that you are using its/C
option, (since it doesn't accept the-c
form preferred by the MSYS shell.If you'd like to make the
foo.bat
file directly executable from the MSYS shell, you may create a two line Bourne shell wrapper script called simplyfoo
alongside it, (in the same directory asfoo.bat
), thus:(so in your case, you'd create script file
meteor
alongsidemeteor.bat
).In fact, since this wrapper script is entirely generic, provided your file system supports hard file links, (as NTFS does for files on one single disk partition), you may create one wrapper script, and link it to as many command file names as you have
*.bat
files you'd like to invoke in this manner; (hint: use the MSYSln
command to link the files).I am not using windows so I can't tell you the exact path, but you need to search for the path of the 'bin' folder (something like C:...\bin) where meteor is, and then add it to the PATH environment variable.
Or maybe it is better if you just install the windows version of meteor available here: https://win.meteor.com