0

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.

Trung Cr
  • 1
  • 1
  • 2

2 Answers2

2

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

tpt2213
  • 21
  • 2
  • Thanks.. that worked for me. But why does it work in the Bash? And not powershell? Any ideas? – Daniel Egan Oct 14 '15 at 23:04
  • 1
    actually, I spoke too soon.. it got farther in the process but still produced the same error. – Daniel Egan Oct 15 '15 at 01:38
  • The reason not working with the normal Bash is that it also requires git command, git.exe. You need to include a path for git.exe. – Hill Nov 29 '15 at 18:55
0

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
Community
  • 1
  • 1
Hill
  • 3,391
  • 3
  • 24
  • 28