ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • NPM Project 생성하기
    Develpment/Node.js 2020. 9. 13. 21:31

    1. NPM Project 시작


    $ npm init


    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    This utility will walk you through creating a package.json file.
    It only covers the most common items, and tries to guess sensible defaults.
     
    See `npm help json` for definitive documentation on these fields
    and exactly what they do.
     
    Use `npm install <pkg> --save` afterwards to install a package and
    save it as a dependency in the package.json file.
     
    Press ^C at any time to quit.
     
    name: (study01) section01
    version: (1.0.0)
    description: npm project
    entry point: (index.js)
    test command:
    git repository:
    keywords:
    author:
    license: (ISC)
    About to write to C:\*\package.json:
     
    {
      "name""section01",
      "version""1.0.0",
      "description""npm project",
      "main""index.js",
      "scripts": {
        "test""echo \"Error: no test specified\" && exit 1"
      },
      "author""",
      "license""ISC"
    }
     
     
    Is this ok? (yes)
    cs



    * 프로젝트를 위한 기본 설정 파일이 생성됨.

    package.json


    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    {
      "name""section01",
      "version""1.0.0",
      "description""npm project",
      "main""index.js",
      "scripts": {
        "test""echo \"Error: no test specified\" && exit 1"
      },
      "author""",
      "license""ISC"
    }
    cs


    'Develpment > Node.js' 카테고리의 다른 글

    static 디렉토리 설정 (express)  (0) 2020.09.13
    URL Routing 처리  (0) 2020.09.13
    nodemon  (0) 2020.09.13
    간단한 web server (express)  (0) 2020.09.13

    댓글

Designed by Tistory.