I had this error on a Typescript Angular project, where my Tailwind css could not be compiled every time I created a new component in my angular cli.

I was able to fix it:

Put 

chmod -R 777 * 

as access rights on your node_modules folder.

 

Thanks to this user:  https://stackoverflow.com/a/54033562/3280710