Node-Sass Compilation Error: Missing Output Directory
The command you provided is trying to compile a single file ('test.scss') into another file ('test.css'). However, you are missing the output directory where the compiled file should be placed.
To fix the issue, you need to specify the output directory for the compiled file. For example, if you want the compiled 'test.css' file to be placed in the same directory as the source file, you can modify the command like this:
cmd.exe /D /C call 'C:\Program Files\nodejs\node-sass.cmd' test.scss:test.css --output-style expanded --source-map true
In this example, '--output-style expanded' specifies that the compiled CSS should be in expanded style, and '--source-map true' generates a source map for easier debugging. Feel free to modify these options according to your requirements.
Remember to adjust the paths to 'node-sass.cmd' and the input/output files based on your specific setup.
原文地址: https://www.cveoy.top/t/topic/oSWW 著作权归作者所有。请勿转载和采集!