Setting up react.js, npm init did NOT create a package.json file


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/articles/react-setup-i

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Trying to get react.js up and running BUT looking at the folder I created via cd-ing into the location and creating a new directory it does not contain the package.json file the directions say should be create using “npm init”. Instead only one file is created (I have attached a screenshot):
04 PM
How do I fix this so that it does create a package.json file?

```

Replace this line with your code.

<do not remove the three backticks above>

#2

what is in the npm-debug.log file? Can you show me the output produced by the `mpn init command, like so:

i quickly created a directory named temp to run the npm init command so i can clean it quickly after i finished helping you


#3

Nothing. See below"


#4

Here is the command line output after npm init
03 PM


#5

then you have to enter a name, press enter, fill in the next prompt, and the next one and so until you answered all prompts (or left them blank)

Did you walk through all the steps (see first two lines of output produced by npm init)


#6

This is what I have now:

25 PM


#8

that is good, that looks like package.json file

type you type yes at final prompt to confirm?


#9

That worked! Thanks for the help.


#10

Not sure what that debug file is all about, any ideas?


#11

nope, no idea. Maybe you can google that, but i don’t think its very important


#12

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.