Skip to content

Component generation on module: Illegal operation on a directory, read #5827

Closed

Description

@albandaft

Bug Report or Feature Request (mark with an x)

- [x] bug report

Versions.

@angular/cli: 1.0.0
node: 6.10.0
os: darwin x64
@angular/common: 4.0.1
@angular/compiler: 4.0.1
@angular/core: 4.0.1
@angular/forms: 4.0.1
@angular/http: 4.0.1
@angular/platform-browser: 4.0.1
@angular/platform-browser-dynamic: 4.0.1
@angular/router: 4.0.1
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.1

MACOS Sierra

The log given by the failure.

Alban-MacBook-Pro:frontend-ng alban$ ng g c -m search search/search-form
installing component
  create src/app/search/search-form/search-form.component.scss
  create src/app/search/search-form/search-form.component.html
  create src/app/search/search-form/search-form.component.spec.ts
  create src/app/search/search-form/search-form.component.ts
EISDIR: illegal operation on a directory, read
Error: EISDIR: illegal operation on a directory, read
    at Error (native)
    at Object.fs.readSync (fs.js:731:19)
    at tryReadSync (fs.js:486:20)
    at Object.fs.readFileSync (fs.js:534:19)
    at Class.afterInstall (/Users/alban/projects/daft-touch/frontend-ng/node_modules/@angular/cli/blueprints/component/index.js:209:34)
    at tryCatch (/Users/alban/projects/daft-touch/frontend-ng/node_modules/rsvp/dist/rsvp.js:539:12)
    at invokeCallback (/Users/alban/projects/daft-touch/frontend-ng/node_modules/rsvp/dist/rsvp.js:554:13)
    at publish (/Users/alban/projects/touch/frontend-ng/node_modules/rsvp/dist/rsvp.js:522:7)
    at flush (/Users/alban/projects/touch/frontend-ng/node_modules/rsvp/dist/rsvp.js:2414:5)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)

Repro steps.

  • Create an simple app
  • Create a new module
  • Add a component to the app with the command ng g c -m new_module new_module/new_component

Although the generation worked correctly

Activity

  1. changed the title [-]Illegal operation on a directory, read[/-] [+]Component generation on module: Illegal operation on a directory, read[/+] on Apr 4, 2017
  2. filipesilva commented on Apr 10, 2017

    @filipesilva
    Contributor

    Dupe of #5461, fixed in #5467, and out on the next patch release.

  3. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  4. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions