我正在关注位于http://meanjs.org/generator.html的mean.js
教程,并且在运行命令yo meanjs
时出现以下错误:
错误:错误:命令失败:C:\ Windows \ system32 \ cmd.exe / s / c“git --version” 'git'n?o?不被识别为内部或外部命令,可操作程序或批处理文件。
有人可以向我解释为什么我会这样做吗?
node --version
v4.3.1
哟 - 版
1.7.0
npm --version
3.7.5
答案 0 :(得分:1)
在做了一些研究之后,我发现我必须在https://git-scm.com/download/安装public class UserAccountAuthenticationSerializer extends JsonDeserializer<UserAccountAuthentication> {
@Override
public UserAccountAuthentication deserialize(JsonParser jsonParser, DeserializationContext deserializationContext)
throws IOException {
UserAccountAuthentication userAccountAuthentication = new UserAccountAuthentication();
ObjectCodec oc = jsonParser.getCodec();
JsonNode node = oc.readTree(jsonParser);
userAccountAuthentication.setAuthenticated(node.get("authenticated").booleanValue());
Iterator<JsonNode> elements = node.get("authorities").elements();
while (elements.hasNext()) {
JsonNode next = elements.next();
JsonNode authority = next.get("authority");
userAccountAuthentication.getAuthorities().add(new SimpleGrantedAuthority(authority.asText()));
}
return userAccountAuthentication;
}