Cnpm – V Caton. Unable to download various packages

Time:2021-2-10

Problem: when cnpm is executed, it is stuck all the time
Uninstall the original cnpm first

npm uninstall -g cnpm --registry=https://registry.npm.taobao.org

Registration module image

npm set registry https://registry.npm.taobao.org

The source image of node on which node gyp compilation depends

npm set disturl https://npm.taobao.org/dist

wipe cache

npm cache clean --force

Install cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

Author: Dora is here. Where is a dream
Link:https://www.jianshu.com/p/f73…
Source: Jianshu
The copyright belongs to the author. For commercial reprint, please contact the author for authorization. For non-commercial reprint, please indicate the source.