1

this is the error I am getting while installing. my node is 13.x.x and npm is 7.x.x

enter image description here

juliomalves
  • 42,130
  • 20
  • 150
  • 146
  • Can you just try running the command "npm i tailwindcss" once. – Shikhar Mar 07 '21 at 15:50
  • 2
    PowerShell has _more_ [metacharacters](https://en.wikipedia.org/wiki/Metacharacter) (characters with special meaning) than other shells, notably including `@ { } , ;`. For them to be used _verbatim_, they must be individually `\``-escaped or enclosed in a quoted string. See [this answer](https://stackoverflow.com/a/66302956/45375) for more information. – mklement0 Mar 07 '21 at 16:26

1 Answers1

3

This is most likely related to PowerShell, as @ is a metacharacter there.

Try running the command with quotes around @tailwindcss/postcss7-compat.

npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat "@tailwindcss/postcss7-compat" postcss@^7 autoprefixer@^9
mklement0
  • 382,024
  • 64
  • 607
  • 775
juliomalves
  • 42,130
  • 20
  • 150
  • 146