사용하고 싶지 않은 모듈을 dependencies에서 삭제해준다
{
"name": "test",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"devDependencies": {
"parcel-bundler": "^1.12.5",
"sass": "^1.51.0"
},
"scripts": {
"dev": "parcel index.html",
"build": "parcel build index.html"
},
"dependencies": {
"@popperjs/core": "^2.11.5",
"bootstrap": "^5.1.3",
"regenerator-runtime": "^0.13.9"
}
}
@popperjs/core와 bootstrap 삭제
{
"name": "test",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"devDependencies": {
"parcel-bundler": "^1.12.5",
"sass": "^1.51.0"
},
"scripts": {
"dev": "parcel index.html",
"build": "parcel build index.html"
},
"dependencies": {
"@popperjs/core": "^2.11.5",
}
}
터미널에서 패키지 다시 설치해주기
npm
npm install
yarn
yarn install'Node.js' 카테고리의 다른 글
| [Node.js] package.js 파일 정리 (0) | 2022.05.26 |
|---|---|
| [Node.js/한줄정리] 모듈(Module) vs 패키지(Package) (0) | 2022.05.15 |
| [Node.js] npm 명령어 정리 (0) | 2022.05.13 |
| [Node.js/한줄정리] package.json과 package-lock.json (0) | 2022.04.20 |
| [Node.js/한줄정리] npm init이란? (0) | 2022.04.20 |
댓글