Mac 下解决 zsh: no matches found: postcss@^7

Mac 下解决 zsh: no matches found: postcss@^7

💡 原文中文,约400字,阅读约需1分钟。
📝

内容提要

在Mac开发中引入Tailwind CSS库时,可能会遇到“zsh: no matches found: postcss@^7”的错误。解决方法是使用命令:npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9。注意zsh对“^”的解析问题。

🎯

关键要点

  • 在Mac开发中引入Tailwind CSS库时,可能会遇到错误:zsh: no matches found: postcss@^7。

  • 解决该错误的方法是使用命令:npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9。

  • 注意zsh对“^”的解析问题,可能导致命令无法正确执行。

🏷️

标签

➡️

继续阅读