当前位置:网站首页>卸载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
边栏推荐
- Isn't it too much to play Gobang in idea?
- [redis underlying parsing] string type
- C#常见的集合
- The noise reduction effect is increased by more than 6 times! With the microphone inside the headset, this wireless noise reduction headset is unusual!
- Intel base instruction -- bnd
- Array of arm disassembly
- [database] index
- Talk about what's going on with C # backstage GC?
- How to copy all files in one folder to another folder
- Fusing and degrading Sentinel
猜你喜欢

我也是醉了,Eureka 延迟注册还有这个坑!
![PHP zero time task, PHP laravel time task schedule [dry goods]](/img/09/c9a4c83fe23c852aa76a6f5a6cea52.png)
PHP zero time task, PHP laravel time task schedule [dry goods]

Redis 使用详解

PE format: analyze and implement IATHOOK

Performance debugging -- chrome performance
![[MAIXPY]kpu: load error:2005, ERR_ READ_ File: read file failed problem solving](/img/0b/da67b5a361a2cdfaf81568d34cf5f7.png)
[MAIXPY]kpu: load error:2005, ERR_ READ_ File: read file failed problem solving

Oracle RAC RMAN backup error ora-19501 ora-15081

性能调试 -- Chrome Performance

【面试:并发篇25:多线程:volatile】可见性

GPON introduction and Huawei OLT gateway registration and configuration process
随机推荐
大厂面试官:千万级数据量的表,如何进行快速查询?
【饭谈】如何设计好一款测试平台?
性能调试 -- Chrome Performance
I/O案例实操
Guys, how can Flink SQL submit tasks in per job mode?
Basic method of black box (function) test
Isn't it too much to play Gobang in idea?
[redis underlying parsing] string type
如何用 Redis 实现分布式锁的?
Face and key point detection: yolo5face practice
GPON介绍及华为OLT网关注册配置流程
[interview: concurrent 25: multithreading: volatile] visibility
Apple estimates that iPhone will give up the Chinese market, and the Chinese industrial chain needs to consider living a hard life
Dear bosses, how can I print the result of Flink SQL to the console and display it completely?
Detailed explanation of JVM memory model and structure (five model diagrams)
Composition of dog food
[JS] the problem pointed by this
分享|智慧消防应急管理平台解决方案(附PDF)
【饭谈】测试平台为什么有组件化?模块化?很多看不到的地方设计的很好是种浪费么?
Record the transfer of domain names from Alibaba cloud service providers to Huawei cloud