docker node-sass issue #58

Closed
opened 2026-02-17 11:40:29 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @seognil on GitHub (Feb 5, 2019).

To me, it's always unable to build css while local dev.
while up docker and browse http://localhost:1313
css file missing

But I finally found a way after try everything

cd themes/conventional-commits
npm install --save-dev node-sass
npm install
npm run build
cd ../../

and then run the docker-compose up as README said
It just worked at least
(I didn't add these changes in my latest Chinese text PR)


The error info I saw was:

Downloading binary from https://github.com/sass/...blahblah.../v4.9.3/...blahblah...
Cannot download "https://github.com/sass/...blahblah.../v4.9.3/...blahblah..."
HTTP error 404 Not Found

But it goes well after I do the npm update staff

Haven't figure out why yet
I'm in China and using Mac (maybe network issue? but really couldn't find the release when I manually check the node-sass Github repo)


Maybe it's necessary to update the deps

Or only add my case to README (if only few guys meet this issue)
(also unable to use yarn at first, haven't try that after npm worked)

Originally created by @seognil on GitHub (Feb 5, 2019). To me, it's always unable to build css while local dev. while up docker and browse `http://localhost:1313` css file missing But I finally found a way after try everything ``` cd themes/conventional-commits npm install --save-dev node-sass npm install npm run build cd ../../ ``` and then run the `docker-compose up` as README said It just worked at least (I didn't add these changes in my latest Chinese text PR) --- The error info I saw was: ``` Downloading binary from https://github.com/sass/...blahblah.../v4.9.3/...blahblah... Cannot download "https://github.com/sass/...blahblah.../v4.9.3/...blahblah..." HTTP error 404 Not Found ``` But it goes well after I do the npm update staff Haven't figure out why yet I'm in China and using Mac (maybe network issue? but really couldn't find the release when I manually check the node-sass Github repo) --- Maybe it's necessary to update the deps Or only add my case to README (if only few guys meet this issue) (also unable to use yarn at first, haven't try that after npm worked)
GiteaMirror added the bug label 2026-02-17 11:40:29 -06:00
Author
Owner

@damianopetrungaro commented on GitHub (Feb 5, 2019):

I will take a look this week, ping me back if I won't reply 👍
Nice spot :D

@damianopetrungaro commented on GitHub (Feb 5, 2019): I will take a look this week, ping me back if I won't reply 👍 Nice spot :D
Author
Owner

@MSakamaki commented on GitHub (May 10, 2019):

I also have this problem and found a solution.

The cause is sass:watch in npm-sctiprs of the theme.
If you build after creating content, css is not generated because scss does not change.

There are two ways to solve this:

  1. After building scss once, include in commit themes/conventional-commits/static/css/style.css
  2. add normal scss-build-tasks as npm start.
@MSakamaki commented on GitHub (May 10, 2019): I also have this problem and found a solution. The cause is `sass:watch` in npm-sctiprs of the theme. If you build after creating content, css is not generated because scss does not change. There are two ways to solve this: 1. After building scss once, include in commit `themes/conventional-commits/static/css/style.css` 2. add normal scss-build-tasks as npm start.
Author
Owner

@damianopetrungaro commented on GitHub (May 10, 2019):

@MSakamaki this one seems reasonable add normal scss-build-tasks as npm start..

Do you want to do it? I can assign you on this!

@damianopetrungaro commented on GitHub (May 10, 2019): @MSakamaki this one seems reasonable `add normal scss-build-tasks as npm start.`. Do you want to do it? I can assign you on this!
Author
Owner

@MSakamaki commented on GitHub (May 10, 2019):

@damianopetrungaro
Yes, leave it to me.
I will make a PR.

@MSakamaki commented on GitHub (May 10, 2019): @damianopetrungaro Yes, leave it to me. I will make a PR.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/conventionalcommits.org#58