npm - 未找到 postcss@1.1.5 的匹配版本
问题描述
我对post css不是很熟悉,只是按照关于react安装tailwind和npm安装hero-icons的指南安装了hero-icons后
npm install @heroicons/react
我导入了一个图标
import { BeakerIcon } from '@heroicons/react/solid'
这只是一个例子。当我展示它时,给了我一个空盒子。然后我检查了我是否正确安装了 npm 包,它告诉我要这样做
npm audit fix --force
因为有一些中等级别的漏洞,我得到的错误是
code ETARGET
npm ERR! notarget No matching version found for postcss@1.1.5.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist
我的节点版本 v14.16.0 和 npm 版本是 7.15.0 ...我的发行版Ubuntu 20.10的最新版本
解决方案
推荐阅读
- java - 如何将 Google 的 DateTime 对象转换为长类型值?
- android - 如何在android 9中允许Http
- api - 如何使用身份验证令牌从 CATSone API 中提取数据?
- react-native - 无法从领域数据库架构中获取值
- .net - 带有等待 httpClient 的异步调用不起作用
- r - 预测和错误的R编程错误是predict.svm:测试数据与模型不匹配
- android-studio - 使用具有某些网络类型的 AS Emulator 进行测试时,应用程序无法正常工作
- solr - Solr/Lucene 简单运算符“或”误解/在不同字段中搜索相同的单词
- python - 根据列值和列表创建列
- wordpress - 在 woocommerce 中注册时防止自动登录