Windows,当我尝试运行npm install ,它显示: mean@1.0.0 postinstall E:\mean node node_modules/grunt-cli/bin/grunt install Running "bower:install" (bower) task Fatal error : git is not installed or not in the PATH npm ERR! weird error 1 npm ERR! not ok code 0 问题是什么? 如何解决它? 该进程是从https://github.com/linnovate/mean
这是一个远射,但有没有人看过这个错误? 我正在尝试使用express,angular和mongoDB来添加“Transporters”。 每次访问由运输者控制器统治的页面时,都会收到此错误消息: Error: [ng:areq] http://errors.angularjs.org/1.2.12/ng/areq?p0=TransportersController&p1=not%20aNaNunction%2C%20got%20undefined at Error (native) at http://localhost:3000/lib/angular/angular.min.js:6:450 at tb (http://localhost:3000/lib/angular/angular.min.js:18:360) at Pa (http://localhost:3000/lib/angular/angular.min.js:18:447) at http://localhost:3000/lib/angular/angular.min.js:62:17 at http://localhost:3000/lib/angular/angular.min.js:49:43 at q (http://localhost:3000/lib/angular/angular.min.js:7:386) at H (http://localhost:3000/lib/angular/angular.min.js:48:406) at f (http://localhost:3000/lib/angular/angular.min.js:42:399) at http://localhost:3000/lib/angular/angular.min.js:42:67 运输车控制器看起来像这样: 'use strict'; angular.module('mean.transporters').controller('TransportersController', ['$scope', '$routeParams', '$location', 'Global', 'Transporters', function ($scope, $routeParams, $location, Global, Transporters) { $scope.global = Global; $scope.create = function() { […]
以下是我在user.js模型中的user架构 – var userSchema = new mongoose.Schema({ local: { name: { type: String }, email : { type: String, require: true, unique: true }, password: { type: String, require:true }, }, facebook: { id : { type: String }, token : { type: String }, email : { type: String }, name : { type: […]