当前位置:网站首页>cnpm的诡异bug
cnpm的诡异bug
2022-04-23 13:50:00 【coderYYY】
别轻易用cnpm,会变得不幸
今天在安装pig-ui的依赖包时,使用cnpm install
安装的(因为官方用的也是cnpm)
但是在安装过程中,不止安装速度缓慢还报错
retry GET https://registry.npmmirror.com/monaco-editor/-/monaco-editor-0.27.0.tgz after 100ms, retry left 4, ResponseTimeoutError: Res ponse timeout for 120000ms, GET https://cdn.npmmirror.com/packages/monaco-editor..retry GET https://registry.npmmirror.com/monaco-editor/-/monaco-editor-0.27.0.tgz after 100ms, retry left 4, ResponseTimeoutError: Res ponse timeout for 120000ms, GET https://cdn.npmmirror.com/packages/monaco-editor
安装卡在这个地方好久
Installing babel-runtime@6.x
我又验证了一下镜像,发现也是没问题
# 验证命令:
npm config get registry
# 返回https://registry.npmmirror.com,说明镜像配置成功
之后也把node-modules
删了重新装还是不行
这时我用npm install
安装也还是不行
后面我把cnpm卸载了,再使用npm install
,就安装成功,且运行成功
总结
能用npm还是用npm,不过cnpm有时候也有快的好处(但是那堆诡异的bug有时候真的要把我整疯),这两个最好不要一起混用
版权声明
本文为[coderYYY]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_23073811/article/details/124333505
边栏推荐
- Android 面试主题集合整理
- Lenovo Saver y9000x 2020
- Leetcode? The first common node of two linked lists
- Oracle calculates the difference between two dates in seconds, minutes, hours and days
- Express②(路由)
- Using Baidu Intelligent Cloud face detection interface to achieve photo quality detection
- 商家案例 | 运动健康APP用户促活怎么做?做好这几点足矣
- PG library checks the name
- Use of GDB
- leetcode--380.O(1) 时间插入、删除和获取随机元素
猜你喜欢
神经元与神经网络
解决方案架构师的小锦囊 - 架构图的 5 种类型
Dolphin scheduler source package Src tar. GZ decompression problem
Express middleware ③ (custom Middleware)
Double pointer instrument panel reading (I)
Leetcode | 38 appearance array
联想拯救者Y9000X 2020
Special window function rank, deny_ rank, row_ number
PG SQL intercepts the string to the specified character position
Apache Atlas Compilation and installation records
随机推荐
[code analysis (5)] communication efficient learning of deep networks from decentralized data
TCP reset Gongji principle and actual combat reproduction
Information: 2021 / 9 / 29 10:01 - build completed with 1 error and 0 warnings in 11S 30ms error exception handling
MySQL and PgSQL time related operations
Function executes only the once function for the first time
ACFs file system creation, expansion, reduction and other configuration steps
Move blog to CSDN
leetcode--357. 统计各位数字都不同的数字个数
Oracle kills the executing SQL
软考系统集成项目管理工程师全真模拟题(含答案、解析)
Tensorflow Download
GDB的使用
Parameter comparison of several e-book readers
Solution: you have 18 unapplied migration (s) Your project may not work properly until you apply
Oracle generates millisecond timestamps
Solve tp6 download error course not find package topthink / think with stability stable
YARN线上动态资源调优
Two ways to deal with conflicting data in MySQL and PG Libraries
SSM project deployed in Alibaba cloud
神经元与神经网络