-->

Error: Command failed: C:\\Windows\\system32\\cmd.

2019-06-12 09:44发布

问题:

How to fix this error. When i use command “yo meanjs”, but not show as in video. It’s: undefined You’re using the official MEAN.JS generator. What mean,js version would you like to generate? i choose 0.4.0 In which filder would you like the project to be generated? mean Cloning the MEAN repo… Then it appear error: Command failed: C:\Windows\system32\cmd.exe /s /c “rm ./mean/package.json” ‘rm’ is not recognized as an internal and external command, operable program or batch file.

回答1:

you should install git on windown 7 and select folder you want . click -> right mouse -> Git Bash After type command : "yo meanjs" and everything will good



回答2:

The tpt2213's answer works, but it can't select menu items of "yo meanjs" with arrow keys.
You need to have cmd.exe with PATH setting, which includes the git command and Unix commands like the rm.

If you install git on window 7 in the folder, "C:\Program Files\Git", set PATH before you run "yo meanjs".

set PATH=C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;%PATH%
yo meanjs


标签: meanjs yo