Ref. https://flaviocopes.com/npm-uninstall-packages/
Published Aug 16, 2018
To uninstall a package you have previously installed locally (using npm install <package-name> in the node_modules folder, run
npm uninstall <package-name>
from the project root folder (the folder that contains the node_modules folder).
Using the -S flag, or --save, this operation will also remove the reference in the package.json file.
If the package was a development dependency, listed in the devDependencies of the package.json file, you must use the -D / --save-dev flag to remove it from the file:
npm uninstall -S <package-name> npm uninstall -D <package-name>
If the package is installed globally, you need to add the -g / --global flag:
npm uninstall -g <package-name>
for example:
npm uninstall -g webpack
and you can run this command from anywhere you want on your system because the folder where you currently are does not matter.
Download my free Node.js Handbook, and check out my premium Node.js Course
'Programming > JavaScript, Node.js' 카테고리의 다른 글
Request library, get the response time (0) | 2020.08.07 |
---|---|
Public, Private, and Protected Scope in JavaScript (0) | 2020.08.07 |
Object.keys, values, entries (0) | 2020.08.05 |
org.apache.log4j (0) | 2019.12.18 |
javascript fetch 를 이용한 ajax 통신 및 주의점 (0) | 2019.10.18 |
댓글