当前位置:网站首页>Strange bug of cnpm

Strange bug of cnpm

2022-04-23 13:54:00 coderYYY

Don't use it easily cnpm, Will become unfortunate

Installing today pig-ui Dependent package , Use cnpm install Installed ( Because the official use is also cnpm)
 Insert picture description here
But during installation , Not only the installation speed is slow, but also an error is reported

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

Installation stuck in this place for a long time

Installing babel-runtime@6.x

I verified the image again , It's no problem to find

#  Validation command :
npm config get registry
#  return https://registry.npmmirror.com, The image configuration is successful 

After that node-modules It's still not possible to delete it and reinstall it
Now I use npm install Installation still doesn't work
I'll put cnpm Uninstalled , Reuse npm install, The installation is successful , And it runs successfully
 Insert picture description here

summary

It works npm Or use it npm, however cnpm Sometimes it has the advantage of being fast ( But that weird pile of bug Sometimes it really drives me crazy ), It is better not to mix the two together

版权声明
本文为[coderYYY]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231350316481.html