Skip to content

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

Closed
@aniruddhadas9

Description

@aniruddhadas9

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions