奇怪的请求在Mean.io中重复

我已经从Github克隆了一个存储库,在其他计算机(MacOS X和Windows)中完美工作。但由于某种原因,我无法login。它是一个基础Mean.io项目。 它完美加载。 我正常注册,但是当我尝试login时,它将我redirect到/。 用户正确存储在mongo中,所以我不知道/理解发生了什么。 我也用节点检查器debugging,但没有得到任何结果。

我从debugging中发现,在我的电脑中,代码在这部分(packages / users / public / controllers / meanUser.js)中performance错误:

// authentication OK $scope.loginError = 0; $rootScope.user = response.user; // here $scope.global.authenticated is false $rootScope.$emit('loggedin'); // $scope.global.authenticated is set to true if (response.redirect) { // here $scope.global.authenticated is false again and it shouldn't but haven't been able to find out what's the problem 

这是我的package.json

 "name": "mean", "description": "MEAN.io: A fullstack JavaScript framework powered by MongoDB, ExpressJS, AngularJS, NodeJS.", "version": "0.4.3", "private": false, "author": "Linnovate <mean@linnovate.net>", "contributors": "https://github.com/linnovate/mean/graphs/contributors", "mean": "0.4.3", "repository": { "type": "git", "url": "https://github.com/linnovate/mean.git" }, "engines": { "node": "0.10.x", "npm": "1.3.x" }, "scripts": { "start": "node server", "mocha": "node node_modules/.bin/mocha packages/**/server/tests/**/*.js -R spec -r tools/test/mocha-req.js", "karma": "node node_modules/karma/bin/karma start", "test": "grunt test", "postinstall": "node node_modules/meanio/node_modules/mean-cli/bin/mean-postinstall" }, 

我有节点:0.10.33平均值:0.4.3平均值:0.9.14 mongo:2.6.5

这是我的节点日志非常奇怪,请求被复制。

请求重复是非常奇怪的

我的networking选项卡

Chrome:(工作而不工作) 在这里输入图像描述

Firefox :(无论是工作还是不工作) 在这里输入图像描述

任何帮助将不胜感激。

编辑

我已经更新节点,NPM,意味着,鲍尔和吞咽到最后的版本,虽然我得到这个错误:

 [Error: Module did not self-register.] js-bson: Failed to load c++ bson extension, using pure JS version Mean app started on port 3000 (development) cluster.worker.id: 0 

情况有所改善: 现在要求只做一次

最后,我意识到,sudo npm安装出错了,但我仍然不知道为什么。 所以,我的解决scheme是从我的合作伙伴复制一个文件夹并使用它。

不过,我必须深入研究node和npm的安装。