I have a problem with SASS for node.js on Mac (OS X El Capitan)
When i trying compile a scss file to css using command 'node-sass -o css sass/style.scss' I get the following error:
node-sass: command not found
What's the problem and how i can solve it?
try this:
npx node-sass -o css sass/style.scss
npx
will check whether <command>
exists in $PATH
, or in the local project binaries, and execute it. The more detail explanation is here
This helped me:
sudo npm install --unsafe-perm -g node-sass
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With