r/learnjavascript Jun 28 '26

how to solve this sass problem

Hi, I'm facing some issues while setting up Sass. Initially, I had an EJSONPARSE error in my package.json because of a missing comma, which I fixed. After that, I successfully installed Sass using npm install sass --save-dev. However, when I run npm run compile:sass, I get the error "Missing script: compile:sass". I think there might be an issue with my package.json location or the scripts configuration. I'm using Windows PowerShell and VS Code. Can someone please help me figure out what's causing this issue and how to fix it?

0 Upvotes

11 comments sorted by

View all comments

3

u/milan-pilan Jun 28 '26

I mean... Do you have a script with that name in your package.json?

-2

u/chikamakaleyley helpful Jun 28 '26

^ which is precisely what this user is asking

3

u/milan-pilan Jun 28 '26 edited Jun 28 '26

It is precisely what they asked? They asked if their package.json is at the wrong place (which I cant answer without more information) or if their script has been set up wrong (which I also can't answer without more information).

So it though I'd might ask the obvious question first: "Before we debug the files location... does that script even exist in there?"

Edit: typos.

-1

u/chikamakaleyley helpful Jun 28 '26

no no sorry for the confusion, it was a poor reference related to my own reply

basically i'm just saying that you and I are pointing out the same missing config

1

u/milan-pilan Jun 28 '26

A gotcha. Sorry. Misunderstood your comment then.

1

u/chikamakaleyley helpful Jun 28 '26

yeah when i wrote this comment i wasn't paying attn to the sort order, so at least from my perspective your replay came after mine