getgrav / grav-premium-issues

Official Grav Premium Issues repository to report problems or ask questions regarding the Premium products offered.
https://getgrav.org/premium
7 stars 2 forks source link

Recompiling CSS fails since upgrade to Grav 1.7.37.1 #313

Closed danielrpfeiffer closed 1 year ago

danielrpfeiffer commented 1 year ago

Hello,

Yesterday, I upgraded to the latest Grav v1.7.37.1

I wanted to recompile the CSS using npm, but now it fails.

I'm not sure if this has to do with the upgrade as this relates to the theme by my understanding. Just realized at that moment...

/user/themes/typhoon $ npm run watch

> postcss8-tailwind@1.0.0 watch
> tailwindcss -i ./css/site.css -o ./build/css/site.css --postcss --watch --minify --verbose

**sh: tailwindcss: not found**

"./css/site.css" and all files mentioned in the file do exist.

rhukster commented 1 year ago

the npm run watch command is 100% node, and nothing to do with Grav. I suspect you just need to install the npm modules:

rm -Rf node_modules
npm install
rhukster commented 1 year ago

I just replicated that same error when i updated some NPM modules, and the solution above was the fix.

danielrpfeiffer commented 1 year ago

Ok, thanks for the hint.

danielrpfeiffer commented 1 year ago

In my case, I had to reinstall npm completely. Now works again. All good now.

Thanks again for the hint about npm!