当前位置:网站首页>cnpm 执行时卡住应该怎么解决?
cnpm 执行时卡住应该怎么解决?
2022-07-24 01:00:00 【Ark方舟】
问题
执行cnpm i时程序卡住,没有反应,此时最常见的方法就两种,一种是重新启动,另一种就是卸载重装。这两个办法都是非常的有效的。
遇到了这个问题重新执行发现还是无法解决,之后我就卸载重装了 cnpm 。
解决方案
1 先卸载之前的 cnpm 版本。
npm uninstall -g cnpm --registry=https://registry.npm.taobao.org
2 注册模块镜像
npm set registry https://registry.npm.taobao.org
3 node-gyp 编译依赖的 node 源码镜像
npm set disturl https://npm.taobao.org/dist
4 清空缓存
npm cache clean --force
5 安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
边栏推荐
- C language: deep analysis of const keyword
- Create database table db.create in flask project_ all()
- 创建自签名证书, 对exe文件进行数字签名
- Introduction to QT (2.1 the first procedure for the beginning of QT)
- Case error of MySQL branch statement
- vim常用命令
- JS related knowledge
- Static extension configuration
- Tutorial on the principle and application of database system (048) -- MySQL query (x): self connection query
- The high-quality digital collection of guochuang's "children's song line" is on sale, and you are invited to create a young martial arts Jianghu dream
猜你喜欢

OSPF experiment

Selection method of geometric objects in Creo 9.0

Solve the error: uncaught (in promise) navigationduplicated: avoided redundant navigation to current location:“

Intelligent video monitoring solutions for elderly care institutions, using new technologies to help the intelligent supervision of nursing homes

IDEA 热部署(热加载)

Linx link, first level directory, redirection, CP and MV

The high-quality digital collection of guochuang's "children's song line" is on sale, and you are invited to create a young martial arts Jianghu dream

Starfish OS: create a new paradigm of the meta universe with reality as the link

Testers who have been employed for 3 months are facing employment confirmation. Leaders: 1 year of work experience is packaged into 5 years, and the probation period is eliminated
出于数据安全考虑 荷兰教育部要求学校暂停使用Chrome浏览器
随机推荐
How to use SAP intelligent robotic process automation to automate Excel
Hot 100 dynamic programming
Okaleido tiger NFT is about to log in to the binance NFT platform. Are you looking forward to it?
Sword finger offer frog jumps stairs
Tutorial on principles and applications of database system (047) -- MySQL query (IX): connection query
Are the top ten securities companies risky and safe to open accounts?
Tutorial on principles and applications of database system (041) -- MySQL query (III): setting query conditions
这是一道大水题
JS related knowledge
Thread pool summary
Is flush opening an account risky and safe?
First knowledge of C language functions
Project scenario: NVIDIA SMI unable to datemine the device handle for GPU 0000:01:00.0: unknown error
Bean validation custom container validation chapter ----06
scroll-view實現下拉刷新(避免onload進入頁面初始refresher-triggered為true觸發下拉問題)
NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘*****‘
Implementation of singleton mode and prevention of reflection and serialization
Design details related to sap e-commerce cloud Spartacus UI store
What is promise? What are the benefits of promise
What the hell is ThreadLocal doing?