question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng new my-app causes This command can not be run inside of a CLI project.

See original GitHub issue

Versions

Node v8.11.1
NPM 5.6.0
Windows 10 64 bit

Repro steps

  • install next version of @angular/cli@next
  • Create new project with ng new my_project
  • See error message

Observed behavior

This command can not be run inside of a CLI project.

Desired behavior

New project should be created.

Mention any other details that might be useful (optional)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:16

github_iconTop GitHub Comments

15reactions
akanasscommented, May 2, 2018

delete all .angular* files in the user root directory and all will work after

5reactions
javadevcommented, May 2, 2018

How it is possible to release a new version of angular-cli and not test new project generation?

Build system should be improved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular - This command can only be run inside of a CLI project
Yes. If you just want to generate Angular app with version 5 you can use npx @angular/cli@1.7.4 new hello , then you ...
Read more >
angular/angular-cli - Gitter
Hi, I am currently working on a monorepository project with 6 libs inside /projects and one main application inside /src folder. When we...
Read more >
Angular CLI Behind the Scenes - Part One
Even stranger, although nothing has changed, the next thing that the tutorial instructs you to do is to run the command: ng new...
Read more >
CLI Overview and Command Reference - Angular
Use the ng generate command to add new files for additional components and services, and code for new pipes, directives, and so on....
Read more >
What's new in Angular CLI 6.0? - Ninja Squad
It's now a command that can install packages and run migration scripts automatically. The command will look into the package.json file of the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found