Search code examples
angularangular-cli

Where will Angular-cli be installed?


Where will Angular-cli be installed?can I run Angular-cli expression without install it globaly?


Solution

  • Its is Installed globally

    This is a step you only have to do once. Once it's installed globally with "-g", you can skip this step when creating new Angular 2 projects. Also it's important to note, you need Nodejs and NPM installed before you can proceed with this step.

    Its is installed in Nodejs Modules Globally

    npm install -g @angular/cli
    

    a dummy location -> usr/local/lib/node_modules/@angular/cli/node_modules/

    Then use the following Commands to create a new project

    ng new PROJECT_NAME
    cd PROJECT_NAME
    ng serve
    

    for more info on cli check the wiki