mac开发引入 tailwindcss 库时遇到如下错误:
zsh: no matches found: postcss@^7
可以这样解决:
# 官网给出的命令如下
npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat postcss@\^7 autoprefixer@\^9
# mac的zsh中需要这样,因为错误的 ^ 解析
npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9
参考文献
---------------------
Author: Frytea
Title: Mac 下解决 zsh: no matches found: postcss@^7
Link: https://blog.frytea.com/archives/554/
Copyright: This work by TL-Song is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
That worked for me!! thanks