首页 > 解决方案 > 未找到 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的最新版本

标签: npmpostcss

解决方案


推荐阅读