
npm 설정을하면
npm init
package.json파일이 생성되는데
scripts 에 start라는 것을 설정해 start라고 입력하면 node index.js가 실행되도록 설
{
"name": "package-example1",
"version": "1.0.0",
"description": "인프런 - 한입 크기로 잘라 먹는 리액트를 보며 실습하면서 학습한 코드",
"main": "index.js",
"scripts": {
"test": "echo \\"Error: no test specified\\" && exit 1",
"start": "node index.js"
},
"author": "jeongsupark",
"license": "ISC"
}