2016-05-25 3 views
0

Я слежу за this mean-stack tutorial и попал в логин-часть. Все прошло хорошо, пока я не остановился вчера. Когда я пытаюсь продолжить свою работу по разбега НПМ, я получаю это:Ошибка при запуске скрипта [email protected] 'grunt'

> [email protected] start C:\Users\Aku\mymeanproject\mean 
> grunt 

(node:9784) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, p 
date it to a more recent version. 
(node:9784) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead. 
Running "env:dev" (env) task 

Running "sass:dist" (sass) task 

Running "less:dist" (less) task 

Running "jshint:all" (jshint) task 
>> 89 files lint free. 

Running "eslint:target" (eslint) task 

C:\Users\Aku\myMEANProject\mean\modules\core\client\controllers\home.client.controller.js 
8:2 error Expected indentation of 4 space characters but found 0 indent 
9:2 error Expected indentation of 2 space characters but found 0 indent 
10:3 error Expected indentation of 4 space characters but found 0 indent 
11:3 error Expected indentation of 4 space characters but found 0 indent 
12:3 error Expected indentation of 4 space characters but found 0 indent 
13:3 error Expected indentation of 4 space characters but found 0 indent 
14:2 error Expected indentation of 2 space characters but found 0 indent 
15:2 error Expected indentation of 2 space characters but found 0 indent 
16:3 error Expected indentation of 4 space characters but found 0 indent 
17:3 error Expected indentation of 4 space characters but found 0 indent 
18:3 error Expected indentation of 4 space characters but found 0 indent 
19:3 error Expected indentation of 4 space characters but found 0 indent 
20:2 error Expected indentation of 2 space characters but found 0 indent 
21:2 error Expected indentation of 2 space characters but found 0 indent 
22:3 error Expected indentation of 4 space characters but found 0 indent 
23:3 error Expected indentation of 4 space characters but found 0 indent 
24:3 error Expected indentation of 4 space characters but found 0 indent 
25:3 error Expected indentation of 4 space characters but found 0 indent 
26:2 error Expected indentation of 2 space characters but found 0 indent 
27:2 error Expected indentation of 2 space characters but found 0 indent 
28:3 error Expected indentation of 4 space characters but found 0 indent 
29:3 error Expected indentation of 4 space characters but found 0 indent 
30:3 error Expected indentation of 4 space characters but found 0 indent 
31:3 error Expected indentation of 4 space characters but found 0 indent 
32:2 error Expected indentation of 2 space characters but found 0 indent 

C:\Users\Aku\mymeanproject\mean\server.js 
0:0 warning File ignored because of your .eslintignore file. Use --no ignore to override 

C:\Users\Aku\mymeanproject\mean\config\assets\cloud-foundry.js 
0:0 warning File ignored because of your .eslintignore file. Use --no-ignore to override 

C:\Users\Aku\mymeanproject\mean\config\assets\default.js 
0:0 warning File ignored because of your .eslintignore file. Use --no-ignore to override 

//There 89 of these, each with a different file 

✖ 114 problems (25 errors, 89 warnings) 

Warning: Task "eslint:target" failed. Use --force to continue. 

Aborted due to warnings. 

npm ERR! Windows_NT 10.0.10586 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Aku\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\ 
cli.js" "start" 
npm ERR! node v6.2.0 
npm ERR! npm v3.9.2 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] start: `grunt` 
npm ERR! Exit status 3 
npm ERR! 
npm ERR! Failed at the [email protected] start script 'grunt'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the mean package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  grunt 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs mean 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls mean 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\Users\Aku\mymeanproject\mean\npm-debug.log 

Я даже не есть файл с именем .eslintignore. До этого все отлично работало. Я уже обновил свой npm и узел, и это единственное изменение, которое произошло со вчерашнего дня. Я не специалист по этим вещам, поэтому очень немногие результаты, которые я получил от поиска этого, действительно не помогли мне вообще. А как насчет ошибок home.client.controller.js? Вот файл:

'use strict'; 

angular.module('core').controller('HomeController', ['$scope', 'Authentication', 
    function ($scope, Authentication) { 
// This provides Authentication context. 
$scope.authentication = Authentication; 

$scope.alerts =[ 
{ 
    icon: 'glyphicon-user', 
    colour: 'btn-success', 
    total: '20,408', 
    description: 'TOTAL CUSTOMERS' 
}, 
{ 
    icon: 'glyphicon-calendar', 
    colour: 'btn-primary', 
    total: '8,408', 
    description: 'UPCOMING EVENTS' 
}, 
{ 
    icon: 'glyphicon-edit', 
    colour: 'btn-warning', 
    total: '527', 
    description: 'NEW CUSTOMERS IN 24H' 
}, 
{ 
    icon: 'glyphicon-record', 
    colour: 'btn-info', 
    total: '85,000', 
    description: 'EMAILS SENT' 
} 
]; 
} 
]); 

Я использую Windows, 10.

UPDATE: Новый день, новые необъяснимые изменения. Я больше не получаю предупреждения eslintignore, но ошибки отступов все еще существуют. Независимо от того, что я делаю, это не будет исправлено. Это ошибка?

+0

У вас есть неправильный отступ в этом файле, в соответствии с комментариями улучшите его. –

+0

Независимо от того, что я делаю с этим, он просто продолжает давать ошибки. Как он может найти 0 пробелов, когда, очевидно, больше? – akuj

+0

из копируемого и вставленного содержимого у вас много 0 пробелов. В другой руке - попробуйте обновить пакет 'eslint' - возможно, в нем есть ошибка –

ответ

0

Хороший лорд, я чувствую себя глупо. Когда ошибки говорят о символах пробела, это действительно то, что они есть, я думал о них как вкладках все это время. Я обвиняю языковой барьер. : B

Смежные вопросы