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

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

mac开发引入 tailwindcss 库时遇到如下错误:

1
zsh: no matches found: postcss@^7

可以这样解决:

1
2
3
4
5
# 官网给出的命令如下
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

参考文献


Mac 下解决 zsh: no matches found: postcss@^7
https://www.frytea.com/post/20210809032224.html
作者
Tianlun Song
发布于
2021年8月9日
更新于
2024年6月10日
许可协议