Error: Command failed: C:\Windows\system32\cmd.exe /s /c “rm ./mean/package.json”

≯℡__Kan透↙ 提交于 2019-12-08 09:58:10

问题


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


来源:https://stackoverflow.com/questions/32634504/error-command-failed-c-windows-system32-cmd-exe-s-c-rm-mean-package-json

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!