* fix: replace sh with shell fix replace terminal with shell fix replace node with js fix replace output with shell fix replace cs with csharp fix replace c++ with cpp fix replace c# with csharp fix replace javasctipt with js fix replace syntax with js fix replace unix with shell fix replace linux with shell fix replace java 8 with java fix replace swift4 with swift fix replace react.js with jsx fix replace javascriot with js fix replace javacsript with js fix replace c++ - with cpp fix: corrected various typos fix: replace Algorithm with nothing fix: replace xaml with xml fix: replace solidity with nothing fix: replace c++ with cpp fix: replace txt with shell fix: replace code with json and css fix: replace console with shell
24 lines
907 B
Markdown
24 lines
907 B
Markdown
---
|
|
title: Remove a Package from Your Dependencies
|
|
---
|
|
## Remove a Package from Your Dependencies
|
|
|
|
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|
|
You should go over to the `package.json` file in your project. Removing a package is as simple as going into your dependencies section and removing the line with the corresponding item. In the following example "express" is removed from `package.json`:
|
|
|
|
Before
|
|
```json
|
|
"dependencies": {
|
|
"express": "^4.16.4",
|
|
"helmet": "^3.14.0"
|
|
},
|
|
```
|
|
|
|
After
|
|
```json
|
|
"dependencies": {
|
|
"express": "^4.16.4",
|
|
},
|
|
```
|
|
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/apis-and-microservices/managing-packages-with-npm/remove-a-package-from-your-dependencies/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
|