Recently, while working on a program using npm script on my Mac system, I encountered some issues. Despite having installed node-sass globally, running "npm run build:css" did not work as expected. The content of my package.json file can be viewed here. The error message displayed by the system is shown in this image: the error description. Interestingly, I found that executing the command
node-sass ./src/scss/pages/index.scss ./static/css/index.css
in the terminal was successful. Additionally, adding a line like "create":"touch sun.js"
to my package.json enabled me to run npm run create
without any issues.
This situation has left me puzzled and seeking advice. Any suggestions would be greatly appreciated.