当前位置:网站首页>卸载npm和安装npm_使用`npm uninstall`卸载npm软件包「建议收藏」
卸载npm和安装npm_使用`npm uninstall`卸载npm软件包「建议收藏」
2022-07-25 21:43:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
卸载npm和安装npm
To uninstall a package you have previously installed locally (using npm install <package-name> in the node_modules folder, run
要卸载以前在本地npm install <package-name> (使用node_modules文件夹中的npm install <package-name> ,请运行
npm uninstall <package-name>from the project root folder (the folder that contains the node_modules folder).
从项目根文件夹(包含node_modules文件夹的文件夹)中。
Using the -S flag, or --save, this operation will also remove the reference in the package.json file.
使用-S标志或--save ,此操作还将删除package.json文件中的引用。
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:
如果程序包是在package.json文件的devDependencies中列出的开发依赖关系,则必须使用-D / --save-dev标志将其从文件中删除:
npm uninstall -S <package-name>
npm uninstall -D <package-name>If the package is installed globally, you need to add the -g / --global flag:
如果软件包是全局安装的,则需要添加-g / --global标志:
npm uninstall -g <package-name>for example:
例如:
npm uninstall -g webpackand you can run this command from anywhere you want on your system because the folder where you currently are does not matter.
并且您可以在系统上的任何位置运行此命令,因为当前所在的文件夹无关紧要。
卸载npm和安装npm
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/127908.html原文链接:https://javaforall.cn
边栏推荐
- 大厂面试官:千万级数据量的表,如何进行快速查询?
- How to configure and use rocksdb in the flinksql environment
- Detailed explanation of Ag search tool parameters
- Create EDA - why should I learn EDA
- The noise reduction effect is increased by more than 6 times! With the microphone inside the headset, this wireless noise reduction headset is unusual!
- Pyqt5 use pyqtgraph to draw multiple y-value scatter plots
- 工作面试总遇秒杀? 看了京东 T8 大咖私藏的秒杀系统笔记, 已献出膝盖
- In Oracle 19C version, logminer package continuous_ The outdated function of mine leads to CDC failure
- [MAIXPY]kpu: load error:2005, ERR_ READ_ File: read file failed problem solving
- 人脸与关键点检测:YOLO5Face实战
猜你喜欢

我也是醉了,Eureka 延迟注册还有这个坑!

I'm also drunk. Eureka delayed registration and this pit!

性能调试 -- Chrome Performance

On Web Performance Optimization (1)

In depth understanding of seven specific ways to enhance code scalability

立创EDA——器件的创建01-电阻(二)

Lichuang EDA -- creation of devices 01 resistance (II)

IJCAI2022开会了! 微软等《领域泛化Domain Generalization》教程

Basic method of black box (function) test

ONEFLOW V0.8.0 officially released
随机推荐
New maixhub deployment (v831 and k210)
CTS test steps (Casio cts200 test)
如何用 Redis 实现分布式锁的?
Create EDA - why should I learn EDA
Byte side: can TCP and UDP use the same port?
Optimization analysis of storage structure and IO performance of openharmony littlefs file system
Unity metaverse (II), mixamo & animator hybrid tree and animation fusion
Lichuang EDA -- creation of devices 01 resistance (II)
In Oracle 19C version, logminer package continuous_ The outdated function of mine leads to CDC failure
[interview: concurrent Part 24: multithreading: comprehensive exercise] sequence control
In depth understanding of seven specific ways to enhance code scalability
PE格式: 分析IatHook并实现
【饭谈】如何设计好一款测试平台?
My heart's broken! After being cheated by 30000, a 16-year-old girl was unconvinced and cheated by 50000
ORIGYN基金会正式启动$OGY Staking,引领新一轮生态利好
【Redis底层解析】链表类型
狗粮的成分
Dear bosses, how can I print the result of Flink SQL to the console and display it completely?
[Flink] flick rocksdbliststate reports an error you cannot add null to a liststate
浅谈web性能优化(一)