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

2019-06-12 10:03发布

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.

标签: meanjs yo
2条回答
来,给爷笑一个
2楼-- · 2019-06-12 10:09

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

查看更多
Fickle 薄情
3楼-- · 2019-06-12 10:27

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
查看更多
登录 后发表回答