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

cmdexe D C call CProgram Filesnodejsnode-sasscmd testscsstestcssAn output directory must be specified when compiling a directory

原文地址: http://www.cveoy.top/t/topic/i1jf 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录