taro-iconfont-cli icon indicating copy to clipboard operation
taro-iconfont-cli copied to clipboard

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

Open w3eee opened this issue 6 years ago • 4 comments

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

w3eee avatar Dec 07 '19 12:12 w3eee

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

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

fwh1990 avatar Dec 07 '19 15:12 fwh1990

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

fwh1990 avatar Dec 07 '19 15:12 fwh1990

npm 安装,有同样的问题

languis avatar Dec 13 '19 08:12 languis

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

fwh1990 avatar Dec 13 '19 08:12 fwh1990