Description
I'm new to Angular2 and wanted to try out the CLI tools, but unfortunately I had some issues setting it up.
After installing CLI using npm, I received a warning on the console that the watcher is missing (this is not listed in the prerequisites). I installed it via homebrew according to http://ember-cli.com/user-guide/#watchman and the message went away.
Then I started creating a new project via "ng new" and the directory including its content was created without issues. However, after switching to the new directory and using "ng serve", I get an error:
Could not require 'angular-cli-build.js': Cannot find module 'glob'
Error: Could not require 'angular-cli-build.js': Cannot find module 'glob'
It seems that a javascript dependency is missing, but I'm not sure if this should be part of the CLI project or if I have to install it manually before using CLI somehow (if so, I'd expect it to appear in the prerequisites section).
I documented all the steps and the console output here:
http://pastebin.com/dstXXCXR
Please let me know if there's other information you need to reproduce the issue.
My Setup:
- OS.
Mac OSX El Capitan - Versions.
angular-cli: 0.0.33
node: 5.10.1
os: darwin x64 - Repro steps.
- The log given by the failure. Normally this include a stack trace and some
more information. - Mention any other details that might be useful.
See http://pastebin.com/dstXXCXR