iconfont-cli / taro-iconfont-cli

在Taro框架中使用iconfont图标,支持多端,支持多色彩,不依赖字体。
MIT License
355 stars 49 forks source link

一直无法安装成功是什么原因呢 #9

Open w3eee opened 4 years ago

w3eee commented 4 years ago

app git:(app) ✗ npm install taro-iconfont-cli --save-dev npm ERR! code ETARGET npm ERR! notarget No matching version found for react-iconfont-cli@^0.2.2. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist. npm ERR! notarget npm ERR! notarget It was specified as a dependency of 'taro-iconfont-cli' npm ERR! notarget

node -v v12.13.1 npm -v 6.12.1

fwh1990 commented 4 years ago

用的是什么源?输入命令npm config get registry查看。

您也可以尝试清除本地的npm缓存npm cache clean --force后再次安装taro-iconfont-cli,或者推荐您改用yarn代替npm

fwh1990 commented 4 years ago

为确保不是因为网络问题导致,建议您使用淘宝源作为安装的镜像: npm config set registry http://registry.npm.taobao.org ,设置完后再次尝试

languis commented 4 years ago

npm 安装,有同样的问题

fwh1990 commented 4 years ago

@languis 找到问题了,淘宝镜像源抽风,一直没同步react-iconfont-cli这个库。我做了手动同步操作,现在应该没问题了