ng new creates project in home directory instead of the current directory
See original GitHub issuePlease 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.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
@lestard you should also have a rogue
package.json
in your home directory. Deleting that should fully take care of the problem.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.