You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
In mac, ng new project-name creates project in root directory rather in the directory I am in. #5483
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
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.[/+]on Mar 17, 2017
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! :-)
Activity
[-]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.[/+]filipesilva commentedon 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?
aniruddhadas9 commentedon Mar 18, 2017
@filipesilva Yes. I tried with both @angular/cli rc.1 and rc.2 and both have same result. I posted command here.
filipesilva commentedon Mar 18, 2017
Ok, then please check the solutions in #1079 (checking your root dir for a
node_modulesorpackage.jsonand removing them). Those should help.aniruddhadas9 commentedon Mar 18, 2017
Sure, Let me check that.
aniruddhadas9 commentedon Mar 21, 2017
removing package.json file from the root folder worked for me. would I close this issue or there is a permanent fix coming?
filipesilva commentedon Mar 24, 2017
Let's keep it open. This should have been fixed but it seems the fix might not work.
saviocamacam commentedon Jan 28, 2018
On windows, the same thing happens.
mgechev commentedon Dec 17, 2018
@aniruddhadas9 are you still able to reproduce with the latest Angular CLI?
mgechev commentedon 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! :-)
angular-automatic-lock-bot commentedon Sep 9, 2019
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.