2016-04-20 2 views
0

При создании нового проекта ember я получаю сообщение об ошибке. Я пробовал все перечисленные here. Но ничего не работает.Ошибка Ember.js: EISDIR: незаконная операция в каталоге

Я новичок в ember, хотя у меня есть опыт работы с Angular.js и некоторыми jQuery. В этом проекте я пытаюсь завершить учебное пособие, но я не могу заставить его даже работать.

Git Bash выход:

$npm -v 
3.8.3 

$ember -v 
ember-cli: 2.4.3 
node: 5.10.1 
os: win32 x64 


[email protected] MINGW64 ~/Documents/GitHub 
$ ember new EISDIR-SUCKS 
installing app 
    create .bowerrc 
    create .editorconfig 
    create .ember-cli 
    create .jshintrc 
    create .travis.yml 
    create .watchmanconfig 
    create README.md 
    create app\app.js 
    create app\components\.gitkeep 
    create app\controllers\.gitkeep 
    create app\helpers\.gitkeep 
    create app\index.html 
    create app\models\.gitkeep 
    create app\resolver.js 
    create app\router.js 
    create app\routes\.gitkeep 
    create app\styles\app.css 
    create app\templates\application.hbs 
    create app\templates\components\.gitkeep 
    create bower.json 
    create config\environment.js 
    create ember-cli-build.js 
    create .gitignore 
    create package.json 
    create public\crossdomain.xml 
    create public\robots.txt 
    create testem.js 
    create tests\.jshintrc 
    create tests\helpers\destroy-app.js 
    create tests\helpers\module-for-acceptance.js 
    create tests\helpers\resolver.js 
    create tests\helpers\start-app.js 
    create tests\index.html 
    create tests\integration\.gitkeep 
    create tests\test-helper.js 
    create tests\unit\.gitkeep 
    create vendor\.gitkeep 
Successfully initialized git. 
Installed packages for tooling via npm. 
Installed browser packages via Bower. 

[email protected] MINGW64 ~/Documents/GitHub 
$ cd EISDIR-SUCKS/ 

[email protected] MINGW64 ~/Documents/GitHub/EISDIR-SUCKS (master) 
$ ember serve 

Running without elevated rights. Running Ember CLI "as Administrator" increases performance significantly. 
See ember-cli.com/user-guide/#windows for details. 

Livereload server on http://localhost:49157 
Serving on http://localhost:4200/ 
The Broccoli Plugin: [Funnel: Funnel (config)] failed with: 
Error: EISDIR: illegal operation on a directory, read 
    at Error (native) 
    at Object.fs.readSync (fs.js:651:19) 
    at Object.fs.readFileSync (fs.js:472:24) 
    at symlinkWindows (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\node_modules\symlink-or-copy\index.js:99:53) 
    at Function.symlinkOrCopySync [as sync] (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\node_modules\symlink-or-copy\index.js:53:5) 
    at Funnel._copy (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\node_modules\broccoli-funnel\index.js:398:19) 
    at Funnel.build (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\node_modules\broccoli-funnel\index.js:167:12) 
    at C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\node_modules\broccoli-plugin\read_compat.js:61:34 
    at lib$rsvp$$internal$$tryCatch (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1036:16) 
    at lib$rsvp$$internal$$invokeCallback (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:1048:17) 

The broccoli plugin was instantiated at: 
    at Funnel.Plugin (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\node_modules\broccoli-plugin\index.js:7:31) 
    at new Funnel (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\node_modules\broccoli-funnel\index.js:44:10) 
    at EmberApp._configTree (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\lib\broccoli\ember-app.js:977:28) 
    at EmberApp.index (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\lib\broccoli\ember-app.js:623:40) 
    at EmberApp.toArray (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\lib\broccoli\ember-app.js:1563:10) 
    at EmberApp.toTree (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\lib\broccoli\ember-app.js:1586:30) 
    at module.exports (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\ember-cli-build.js:23:14) 
    at Class.module.exports.Task.extend.setupBroccoliBuilder (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\lib\models\builder.js:55:19) 
    at Class.module.exports.Task.extend.init (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\lib\models\builder.js:89:10) 
    at new Class (C:\Users\user\Documents\GitHub\EISDIR-SUCKS\node_modules\ember-cli\node_modules\core-object\core-object.js:18:12) 
+0

Похож на проблему с плагином Брокколи. Посмотрите http://stackoverflow.com/questions/20417118/using-node-js-i-get-error-eisdir-read для получения информации об ошибке EISDIR. Может захотеть открыть проблему с создателями плагина брокколи или искать там проблему. – xkcd149

ответ

1

Я сталкивался этот вопрос сегодня вечером. Я решил это с уверенностью, запустив ember serve в качестве администратора/из командной строки с повышенными правами.

+0

Это, похоже, сработало, спасибо. – sparks

1

я встретил что-то подобное с угловым-кли:

ng serve 

приводит к ошибке Воронка Брокколи:

EISDIR: illegal operation on a directory, symlink 

Оказалось, что быть вызвано тем, что я с помощью TrueCrypt установлен диск для моего кода. Это обычный Windows-диск в любом другом аспекте, но, по-видимому, он работает по-разному для этого символьного материала nodejs.

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