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

In mac, ng new project-name creates project in root directory rather in the directory I am in. #5483

Closed
1 of 2 tasks
aniruddhadas9 opened this issue Mar 17, 2017 · 10 comments
Closed
1 of 2 tasks

Comments

@aniruddhadas9
Copy link
Contributor

aniruddhadas9 commented Mar 17, 2017

Bug Report or Feature Request (mark with an x)

  • bug report -> please search issues before submitting
  • feature request

Versions.

@angular/cli: 1.0.0-rc.2
node: 6.9.1
os: darwin x64

Repro steps.

I am in /xyx/abc folder and run ng new appname, cli should create a folder named /xyz/abc/appname and put all the code in ther but it created a folder in root directory and put all code there

  • below are the command I ran*
CDE34RDHGY23FFG:ng2cli user23$ pwd
/Users/user23/aniruddh/develop/ng2cli
CDE34RDHGY23FFG:ng2cli user23$ ng new mar18 --ng4 --style scss --routing true
installing ng
create .editorconfig
...

CDE34RDHGY23FFG:ng2cli user23$ pwd
/Users/user23/aniruddh/develop/ng2cli
CDE34RDHGY23FFG:ng2cli user23$ ls
feb19                   feb24                   feb25                   feb26                   feb3                    jan30                   mar3ng4withrouter       mar7
CDE34RDHGY23FFG:ng2cli user23$
02NM7DYG3QD:ng2cli user23$ pwd
/Users/user23/aniruddh/develop/ng2cli
CDE34RDHGY23FFG:ng2cli user23$ ls
feb19                   feb24                   feb25                   feb26                   feb3                    jan30                   mar3ng4withrouter       mar7
CDE34RDHGY23FFG:ng2cli user23$ cd ../..
CDE34RDHGY23FFG:aniruddh user23$ ls
backup                  gitexp                  installed-software      mar18                   package.json            run.sh                  test
develop                 helpers                 mar17                   npm-debug.log           run.bat                 sauce-config
CDE34RDHGY23FFG:aniruddh user23$

The log given by the failure.

It did not failed but the folder is created in different folder expected

Desired functionality.

The new project folder should created in the same folder

Mention any other details that might be useful.

@aniruddhadas9 aniruddhadas9 changed the title In mac ng new project name create project in root directory rather in the directory I am in. In mac, ng new project-name creates project in root directory rather in the directory I am in. Mar 17, 2017
@filipesilva
Copy link
Contributor

filipesilva commented Mar 18, 2017

Dupe of #1079, that should have been fixed by #4901.

@aniruddhadas9 are you absolutely sure you're using a globally installed rc.2? Can you reinstall to make sure?

@filipesilva filipesilva added the needs: more info Reporter must clarify the issue label Mar 18, 2017
@aniruddhadas9
Copy link
Contributor Author

@filipesilva Yes. I tried with both @angular/cli rc.1 and rc.2 and both have same result. I posted command here.

@filipesilva filipesilva added freq1: low Only reported by a handful of users who observe it rarely severity2: inconvenient type: bug/fix and removed needs: more info Reporter must clarify the issue labels Mar 18, 2017
@filipesilva
Copy link
Contributor

Ok, then please check the solutions in #1079 (checking your root dir for a node_modules or package.json and removing them). Those should help.

@aniruddhadas9
Copy link
Contributor Author

Sure, Let me check that.

@aniruddhadas9
Copy link
Contributor Author

removing package.json file from the root folder worked for me. would I close this issue or there is a permanent fix coming?

@filipesilva
Copy link
Contributor

Let's keep it open. This should have been fixed but it seems the fix might not work.

@saviocamacam
Copy link

On windows, the same thing happens.

@filipesilva filipesilva added comp: cli/new and removed freq1: low Only reported by a handful of users who observe it rarely severity2: inconvenient type: bug/fix labels Feb 14, 2018
@mgechev
Copy link
Member

mgechev commented Dec 17, 2018

@aniruddhadas9 are you still able to reproduce with the latest Angular CLI?

@mgechev
Copy link
Member

mgechev commented Dec 21, 2018

Closing the issue due to inactivity. If the problem still exists in the latest version of the CLI, please open a new issue following the template and providing a minimal demo where we can reproduce it. Thanks! :-)

@mgechev mgechev closed this as completed Dec 21, 2018
@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.
Projects
None yet
Development

No branches or pull requests

5 participants