0

I'm following this tutorial to create a package.json file.

I navigate to my project and and run npm init but it always creates the package.json in a different location than where I navigated.

H:\>cd C:/Github/my_project/Styleguide/

H:\>npm init --yes
Wrote to H:\package.json:

{
  "name": "my-project",
etc...

What am I doing wrong here? I've tried different paths just for kicks, but it always puts the json in my H: drive.

L.Cora
  • 13
  • 5

1 Answers1

0

Instead of doing > cd C:\etc... I first had to do just > C: to navigate away from H: drive.

L.Cora
  • 13
  • 5