-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic 'ng --version' slow (needs 'watchman') #2791
Comments
Please install watchman |
@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...? |
@megabyzus Perhaps because the npm package for watchman is different. Ref: https://ember-cli.com/user-guide/#watchman
|
@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 Given this, what are the formal instructions from the angular-cli team? Thanks! |
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) |
(still issue). UPDATE: Here is the timing of the ng -v command execution:
results:
(BTW, I've updated to latest node and cli beta.18 snd installed watchman too.) |
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. |
@filipesilva , Thanks. I understood early on watchman was ancillary to this lagging issue. Note, it's taking approx 15 seconds to execute
with or without watchman. Thanks for looking into this. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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 typeng --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 usingng new <PROJ> --skip-npm
works but is still slow. But let's start with a simpleng --version
first. Takes 'long' and the 'watchman' error shows.Many thanks!
Mo
The text was updated successfully, but these errors were encountered: