npm install 安装插件报错

1、npm install @ant-design/charts --save   报错

 

npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

 

2、解决办法:把save放到前面就可以了

npm install --save @ant-design/charts

 

posted @ 2024-04-26 10:39  信铁寒胜  阅读(4)  评论(0编辑  收藏  举报