209. Setting Up NPM and package.json

변지영·2022년 5월 12일
0

React is actually a package created by Facebook that we're going to be using in the next section.

https://nodejs.org/en/download/

If you install npm correctly, you can see the version in terminal after typing(npm -v)


If you want to install newest version,
type

npm install npm@latest -g

This command creates a package.json file in your directory.

npm init


^I just pressed enter again and again and again.

and if you see the folder that you're in, you can see the package.json file

If you open the file(package.json),

^you can see the contents.

On the right hand side of the bottom, you can see that Sublime Text says this is a JSON(NPM) file.

0개의 댓글