Skip to content

Issues using Angular CLI for the first time #476

Description

@thorstenschaefer

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:

  1. OS.
    Mac OSX El Capitan
  2. Versions.
    angular-cli: 0.0.33
    node: 5.10.1
    os: darwin x64
  3. Repro steps.
  4. The log given by the failure. Normally this include a stack trace and some
    more information.
  5. Mention any other details that might be useful.
    See http://pastebin.com/dstXXCXR

Activity

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