Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.1.1] The new command requires to be run outside of a project, but a project definition was found at ".angular-cli.json". #13138

Closed
davvit opened this issue Dec 5, 2018 · 2 comments · Fixed by #13141
Labels
area: angular/cli freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix
Milestone

Comments

@davvit
Copy link

davvit commented Dec 5, 2018

Bug Report or Feature Request (mark with an x)

- [X ] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [X ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

PS C:\xxx\Desktop\New folder> node --version
v10.13.0
PS C:\xxx\Desktop\New folder> npm --version
6.4.1
PS C:\xxx\Desktop\New folder> ng --version
Your global Angular CLI version (7.1.1) is greater than your local
version (7.0.4). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".

Angular CLI: 7.0.4
Node: 10.13.0
OS: win32 x64
Angular: 2.4.10
... compiler, compiler-cli, core

Package Version

@angular-devkit/architect 0.10.4
@angular-devkit/core 7.0.4
@angular-devkit/schematics 7.0.4
@angular/cdk 2.0.0-beta.12
@angular/cli 7.0.4
@angular/tsc-wrapped 0.5.2
@ngtools/json-schema 1.1.0
@ngtools/webpack 1.10.2
@schematics/angular 7.0.4
@schematics/update 0.10.4
rxjs 6.3.3
typescript 3.1.6
webpack 2.2.0

Repro steps

  1. Create empty folder on desktop
  2. ng help or ng new testProj

The log given by the failure

Your global Angular CLI version (7.1.1) is greater than your local
version (7.0.4). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
The new command requires to be run outside of a project, but a project definition was found at ".angular-cli.json".

Desired functionality

No error; Should initialize a new project.

Mention any other details that might be useful

Yes i have seen this closed 'fixed' bug report.
#12198

image

@alan-agius4
Copy link
Collaborator

alan-agius4 commented Dec 6, 2018

Hi can you check is that file is located in your user directory?

We should defiantly print the full path.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: angular/cli freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants