얼음꽃의 일지

npm(Node Packaged Manager) 본문

항해 일지

npm(Node Packaged Manager)

얼음꽃 2022. 12. 18. 14:24
728x90

npm

- Node Packaged Manager의 약자

- 즉, Node.js로 만들어진 모듈을 웹에서 받아서 설치하고 관리해주는 프로그램

- 현재는 Node.js 안에 npm이 내장되어 있음

-  npm init 혹은 npm install을 통하여 패키지에 다운받은 모듈들을 확인 가능

 

// package.json

{
  "name": "final",
  "version": "1.0.0",
  "description": "",
  "main": "app.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "axios": "^1.1.3",
    "bcrypt": "^5.1.0",
    "bcryptjs": "^2.4.3",
    "cors": "^2.8.5",
    "crypto": "^1.0.1",
    "crypto-js": "^4.1.1",
    "dotenv": "^16.0.3",
    "express": "^4.18.2",
    "helmet": "^6.0.1",
    "jsonwebtoken": "^8.5.1",
    "lodash": "^4.17.21",
    "memory-cache": "^0.2.0",
    "moment": "^2.29.4",
    "moment-timezone": "^0.5.39",
    "mongoose": "^6.7.1",
    "shuffle-array": "^1.0.1",
    "socket.io": "^4.5.3",
    "swagger-autogen": "^2.22.0",
    "swagger-ui-express": "^4.5.0"
  },
  "devDependencies": {
    "sequelize-cli": "^6.5.2"
  }
}

이런식으로 npm을 통하여 사용하고있는 부분을 파악 가능

728x90

'항해 일지' 카테고리의 다른 글

이분 탐색  (0) 2022.12.18
Nginx 와 Apache  (0) 2022.12.18
Express 얘는 뭐꼬?  (0) 2022.12.18
화살표 함수  (0) 2022.12.18
async & await  (1) 2022.12.18