Cnpm – V Caton. Unable to download various packages


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

npm uninstall -g cnpm --registry=

Registration module image

npm set registry

The source image of node on which node gyp compilation depends

npm set disturl

wipe cache

npm cache clean --force

Install cnpm

npm install -g cnpm --registry=

Author: Dora is here. Where is a dream
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.