Skip to content

ng new creates project in home directory instead of the current directory #4186

@manuel-mauky

Description

@manuel-mauky

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Linux Mint 17.3 (based on Ubuntu 14.04)

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.26
node: 7.0.0
os: linux x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

cd ~/some/subdirectory/of/home
ng new testproject

The log given by the failure.

Normally this include a stack trace and some more information.

No error messages. The CLI prints Project 'testproject' successfully created.

Mention any other details that might be useful.

Expected behavior: The project is created in a subdirectory of the current directory, for instance ~/some/subdirectory/of/home/testproject.

Actual behavior: The project is created directly in the home directory under ~/testproject. The current directory is empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions