Open w3eee opened 4 years ago
用的是什么源?输入命令npm config get registry
查看。
您也可以尝试清除本地的npm缓存npm cache clean --force
后再次安装taro-iconfont-cli,或者推荐您改用yarn代替npm
为确保不是因为网络问题导致,建议您使用淘宝源作为安装的镜像:
npm config set registry http://registry.npm.taobao.org
,设置完后再次尝试
npm 安装,有同样的问题
@languis 找到问题了,淘宝镜像源抽风,一直没同步react-iconfont-cli
这个库。我做了手动同步操作,现在应该没问题了
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