当前位置:网站首页>卸载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
边栏推荐
- Naming rules for BSP of Quanzhi chip
- 【饭谈】那些看似为公司着想,实际却让人无法理解的事(二:面试时的软素质“眼缘”)
- 大厂面试官:千万级数据量的表,如何进行快速查询?
- 2022-07-18: what is the output of the following go language code? A:Groutine; B:Main; C:Goroutine; D:GoroutineMain。 package m
- CNN structural design skills: taking into account speed accuracy and engineering implementation
- Fastjson deserialization vulnerability utilization analysis collection
- Ability to choose
- Creation and destruction of function stack frames
- How to choose sentinel vs. hystrix current limiting?
- C common set
猜你喜欢

C#Socket

SSH private key realizes login to remote target server

PE format: analyze and implement IATHOOK

Zero basic learning canoe panel (17) -- panel CAPL function

Apple estimates that iPhone will give up the Chinese market, and the Chinese industrial chain needs to consider living a hard life

Optimization analysis of storage structure and IO performance of openharmony littlefs file system

Per capita Swiss number series, Swiss number 4 generation JS reverse analysis

CNN structural design skills: taking into account speed accuracy and engineering implementation

Origen foundation officially launched $ogy stacking, leading a new round of ecological benefits

Ijcai2022 meeting! Microsoft and other tutorials on domain generalization
随机推荐
Oxford University: many common insomnia drugs lack long-term safety data
【leetcode天梯】链表 · 021 合并两个有序链表
Redis 使用详解
【leetcode天梯】链表 · 876 查找链表中间结点
When MySQL imports data, it has been changed to CSV utf8 file and the file name is English. Why does it still fail to import
Experience sharing of system architecture designers preparing for the exam: from point to surface
I'm also drunk. Eureka delayed registration and this pit!
2022 latest examination questions and answers of eight members (standard staff) of Shanghai Architecture
Ijcai2022 meeting! Microsoft and other tutorials on domain generalization
The noise reduction effect is increased by more than 6 times! With the microphone inside the headset, this wireless noise reduction headset is unusual!
GDB locates the main address of the program after strip
Origen foundation officially launched $ogy stacking, leading a new round of ecological benefits
Unity Metaverse(二)、Mixamo & Animator 混合树与动画融合
【Redis底层解析】字符串类型
In depth understanding of seven specific ways to enhance code scalability
Creation and destruction of function stack frames
CTS test steps (Casio cts200 test)
[ManageEngine] value brought by Siem to enterprises
开源协议是否具有法律效力?
我也是醉了,Eureka 延迟注册还有这个坑!