Hi. I have also got bitten by #1079 (summary: if you do ng new xxx in an empty folder, and the parent folder has a package.json, the new project will be created in the parent folder).
I fail to see a realistic user case where one may need that. It causes only confusion (if you look at the original bug it has already 5 duplicates, showing that it is a common enough problem). And as far as I can see, new doesn't actually fetch any information from the package.json, so I'm at a loss to explain why it is actually looking for it. I think it all stems from the packageJson var in ng,
|
const packageJson = require('../package.json'); |
but I think
ng new should disregard it since not relevant in that case.