当前位置:网站首页>卸载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
边栏推荐
- [manageengine]itsm application in retail industry
- 919. Complete binary tree inserter: simple BFS application problem
- es6--解构赋值
- Job interviews are always a second kill? After reading the seckill system notes secretly stored by JD T8, I have given my knees
- QT | learn about QT creator by creating a simple project
- 【饭谈】那些看似为公司着想,实际却让人无法理解的事(二:面试时的软素质“眼缘”)
- Come again
- GDB locates the main address of the program after strip
- Autojs learning - realize 3D perspective
- Experience sharing of system architecture designers preparing for the exam: from point to surface
猜你喜欢

Research: more than 70% of doctors are still prescribing unsafe antibiotic drugs

Record the transfer of domain names from Alibaba cloud service providers to Huawei cloud

Huawei occupies half of the folding mobile phone market, proving its irreplaceable position in the high-end market

【Redis底层解析】字符串类型

【leetcode天梯】链表 · 876 查找链表中间结点

My heart's broken! After being cheated by 30000, a 16-year-old girl was unconvinced and cheated by 50000

浅谈web性能优化(一)

pyqt5使用pyqtgraph绘制多个Y值散点图

How to choose sentinel vs. hystrix current limiting?

strcpy()
随机推荐
es6--解构赋值
【饭谈】Web3.0到来后,测试人员该何去何从?(十条预言和建议)
Airtest solves the problem that a password needs to be entered in the process of "automatic packaging" (the same applies to random bullet frame processing)
【饭谈】细说:下克上,向上管理,向上画饼。
My heart's broken! After being cheated by 30000, a 16-year-old girl was unconvinced and cheated by 50000
Unity Metaverse(二)、Mixamo & Animator 混合树与动画融合
PE格式: 分析IatHook并实现
cuda_ error_ out_ of_ Memory (out of memory)
mysql8.0 mha实现高可用《mha》
Dear bosses, how can I print the result of Flink SQL to the console and display it completely?
Sqlx library usage
[Flink] flick rocksdbliststate reports an error you cannot add null to a liststate
C#Socket
At present, flynk CDC does not support mysql5.5. If you change the source code and release this restriction, there will be a lot of data problems?
[leetcode ladder] linked list · 876 find the middle node of the linked list
Handwriting distributed configuration center (1)
Does the open source agreement have legal effect?
How to solve the problem of high concurrency and large traffic with PHP
Isn't it too much to play Gobang in idea?
Protobuf的简单使用