2

How to creat a new project from angular-cli

There is a problem with angular-cli. The is has closed. I think there are still issue https://github.com/angular/angular-cli/issues/5543#event-1009616731

How to creat a new project from angular-cli

Try again with new folder Try again with new folder

3

2 Answers 2

3

There is either a package.json or angular-cli.json currently in the directory you are trying to create the new angular project in. Please remove that file and you should be able to ng-new APP_NAME afterward.

Sign up to request clarification or add additional context in comments.

2 Comments

The second picture, I created a new folder, will be empty by default .... "ls -la" command to specify that no files exist there.
Please ensure you have met the minimum requirements as well. I see that your node version is high enough. What version of npm are you running? npm -v will give you the information You need to have npm 3.0.0 or higher installed on your system. So if you do not have 3.0.0 or higher install it first.
0
  • Firstly you need to have Node and npm installed on your system.

  • Then install angular-cli using the command

    npm install -g @angular/cli

  • Then make a new project using the command

    ng new NEW_PROJECT

  • Finally run using the command

    ng serve

For more information please refer to these guidelines

PS: check your Node and npm version compatibility with your angular-cli project version.

5 Comments

yes, i see but not success. My info: node: 6.10.0 os: linux x64 @angular/cli: 1.0.0-rc.4
You cannot use the new command inside an Angular CLI project. Look at the picture
that mean angular-cli project is already installed in your folder
command "ls -la", it's not create any files/folder... the folder is empty
its strange behavior, can you repeat the all steps once again in another folder ? so that we can figure out whats the problem and where ?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.