Skip to content

Error: Cannot find module 'exists-sync' #1191

Closed

Description

@michaelpumo

1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Mac OSX El Capitan

2. Versions. Please run ng --version.

angular-cli: 1.0.0-beta.8
node: 5.8.0

3. Repro steps. Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

CLI only. From scratch.

4. The log given by the failure. Normally this include a stack trace and some
more information.

ng generate component card
module.js:341
    throw err;
    ^

Error: Cannot find module 'exists-sync'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/Users/raggededge/Desktop/moveable/moveable/node_modules/angular-cli/node_modules/ember-cli/lib/models/project.js:11:26)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
fatal: no upstream configured for branch 'master'
fatal: no upstream configured for branch 'master'
-bash: [: 55d540eba0a5efa18bdaad19112caf63a0e1a584: unary operator expected
-bash: [: 55d540eba0a5efa18bdaad19112caf63a0e1a584: unary operator expected

5. Mention any other details that might be useful.

Followed the guide here: https://github.com/angular/angular-cli
Successfully created the project and installed the dependencies.
Once complete, I tried running 'ng generate component card' and got the above errors. Think it might have something to do with Git? But the setup guide mentions nothing of Git.

Activity

  1. zhaoshengjun commented on Jun 24, 2016

    @zhaoshengjun

    I just fixed this issue by installing the missing module.

    The issue is likely caused by ember-cli.

    Should be easy to fix.

  2. NgxDev commented on Jun 24, 2016

    @NgxDev
  3. Splaktar commented on Jun 26, 2016

    @Splaktar
    Contributor

    Duplicate of #1186. This should be closed.

  4. added 2 commits that reference this issue on Jun 30, 2016
    afb7391
    f5bf475
  5. added a commit that references this issue on Jun 30, 2016
    6f0ebfb
  6. angular-automatic-lock-bot commented on Sep 5, 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.

  7. locked and limited conversation to collaborators on Sep 5, 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