简体   繁体   中英

MEAN Stack Setup - Command Line

I'm trying to set up a MEAN application and am having some trouble understanding how to go about doing this. I am using Windows, which I know is not ideal, but we're playing around with the MEAN stack at an Enterprise level and that is my only option. I also have very limited experience working with the command line. My biggest areas of frustration are knowing how/where to execute command line commands (please don't tell me the command line). One issue I have is trying to install MEAN on my local pc - I am informed that the prerequisite Git is not installed. I run npm (I have successfully installed Node) install Git, it appears that it is installed, yet I still cannot init a mean app due to the same error. Another issue I have is where we have installed a mean app on a server, however the mean command is not recognized. Where would I go to install a new mean app? How would I install a mean package (what I'm really trying to do)? How do I get MEAN recognized, if I know we have already used it? How many different command prompts should I be using (Git Bash, Windows CLI, Node command prompt)? I feel like an idiot asking such basic questions, but I have literally been trying to figure this out for months and I still don't get it. In case you can't tell, my frustration level is ever increasing. Any help or links to spelled out tutorials would be helpful. I'm tired of seeing 'execute this command' and it never working out as a tut or blog suggests. What am I missing???

As the other answer hinted, perhaps you need to install Git using WinGit rather than npm. When installing, make sure it is available to all users on the PC.

Otherwise you may have to investigate adding Git to your PATH environment variable in Advanced System Properties in My Computer.

Once you've installed MEAN in a folder, all you should need to do is drop to the command line and move to that folder using CD (eg cd \\code\\mymeanapp), and then just run 'grunt' from there, which will check all your code and fire up your MEAN app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM