Skip to content

Basic 'ng --version' slow (needs 'watchman') #2791

Closed

Description

@momoadeli

Please provide us with the following information:

OS?

macOS Sierra

Versions: (error and versions below)

Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.17
node: 5.11.1
os: darwin x64

Repro steps.

npm install angular-cli -g and simply type ng --version.

The log given by the failure.

N/A/See above

Anything I do with ng is very slow. Note ng new <PROJ> is indefinite and seems hung. Aborting and using ng new <PROJ> --skip-npm works but is still slow. But let's start with a simple ng --version first. Takes 'long' and the 'watchman' error shows.

Many thanks!
Mo


Thanks! We'll be in touch soon.

Activity

  1. changed the title [-]Basic ng -version slow (needs 'watchman')[/-] [+]Basic ng --version slow (needs 'watchman')[/+] on Oct 19, 2016
  2. changed the title [-]Basic ng --version slow (needs 'watchman')[/-] [+]Basic 'ng --version' slow (needs 'watchman')[/+] on Oct 19, 2016
  3. tucq88 commented on Oct 20, 2016

    @tucq88

    Please install watchman
    brew install --HEAD watchman
    The key is HEAD option, I cant' get it work without that one.

  4. momoadeli commented on Oct 20, 2016

    @momoadeli
    Author

    @tucq88, although the error indicates that, watchman is not listed in the pre-requisites. I suppose it isn't installed by the angular-cli installer...?

  5. hassanasad commented on Oct 20, 2016

    @hassanasad

    @megabyzus Perhaps because the npm package for watchman is different.

    Ref: https://ember-cli.com/user-guide/#watchman

    For complete installation instructions, refer to the docs on the Watchman website. Note, there exists a similarly named npm package (watchman) which is not the intended installation.
    
  6. momoadeli commented on Oct 20, 2016

    @momoadeli
    Author

    @hassanasad, thanks for response. However, although angular-cli is rooted on ember-cli, the instructions do not presume that. Again, the only installation instructions are npm install -g angular-cli. I'd really like to focus on that and not presume anything. If there are pre-requisites, then it should be mentioned in the README. I presume, as of now, there aren't.

    Given this, what are the formal instructions from the angular-cli team?

    Thanks!

  7. tucq88 commented on Oct 21, 2016

    @tucq88

    I think they was under development and BETA so they may not keep it in mind. But actually I still able to work with ng-cli without watchman, e.g serving and watching. ng-cli used a fallback for watchman already so it's not "actual" pre-requisite. Only got into this trouble when I have to change styleExt (but it could be done manually without using cli command)
    Btw, we could make a PR to them about this thing. It's up to their decision anyway.

  8. added
    needs: investigation
    on Oct 23, 2016
  9. momoadeli commented on Oct 23, 2016

    @momoadeli
    Author

    (still issue). UPDATE:

    Here is the timing of the ng -v command execution:

    (time ng -v)

    results:

    angular-cli: 1.0.0-beta.18
    node: 6.8.1
    os: darwin x64

    real 0m15.135s
    user 0m2.678s
    sys 0m0.468s

    (BTW, I've updated to latest node and cli beta.18 snd installed watchman too.)

  10. filipesilva commented on Oct 23, 2016

    @filipesilva
    Contributor

    The watchman thing has to do with the ember-cli addon system. I don't think we use watchman anywhere really.

    There might be a way to completely bypass this check, but probably it'll be a hack.

  11. added a commit that references this issue on Oct 23, 2016
    1a02f78
  12. momoadeli commented on Oct 23, 2016

    @momoadeli
    Author

    @filipesilva , Thanks. I understood early on watchman was ancillary to this lagging issue. Note, it's taking approx 15 seconds to execute

    ng -v

    with or without watchman.

    Thanks for looking into this.

  13. added a commit that references this issue on Oct 23, 2016
    d9293e9
  14. added and removed
    needs: investigation
    on Nov 2, 2016
  15. added a commit that references this issue on Nov 2, 2016
    9aa1099
  16. added a commit that references this issue on Feb 9, 2017
    63dcbf4
  17. angular-automatic-lock-bot commented on Sep 6, 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.

  18. locked and limited conversation to collaborators on Sep 6, 2019
  19. added a commit that references this issue on May 29, 2026
    4ffd20e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions