gngchrs
gngchrs

Reputation: 478

Angular CLI is creating project in my home folder

Whenever I run ng new appName the app is created in /User/name, which is my home directory. Any idea why this is happening?

My ~/.angular-cli.json only has packageManager: 'yarn'

Upvotes: 0

Views: 167

Answers (1)

Brocco
Brocco

Reputation: 64893

You likely have a package.json file there and that effects the logic of determining if you're within an existing CLI project. Locate that file and remove it.

Upvotes: 1

Related Questions