{"id":26371,"library":"scss-compile","title":"scss-compile","description":"A minimal npm package that provides a CLI wrapper around node-sass for compiling SCSS to CSS. Version 0.1.7, last published in 2016. It is essentially a thin script that runs 'node-sass -rw' with hardcoded default paths (assets/scss -> assets/css). There is no active development or maintenance; it is functionally equivalent to using node-sass directly. Not recommended for new projects; prefer 'sass' (Dart Sass) or node-sass directly.","status":"deprecated","version":"0.1.7","language":"javascript","source_language":"en","source_url":"https://github.com/tylerreckart/sass-compile","tags":["javascript","scss","sass","css","compiler"],"install":[{"cmd":"npm install scss-compile","lang":"bash","label":"npm"},{"cmd":"yarn add scss-compile","lang":"bash","label":"yarn"},{"cmd":"pnpm add scss-compile","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"scss-compile is a thin wrapper that executes node-sass internally. It is a direct runtime dependency and must be installed alongside scss-compile.","package":"node-sass","optional":false},{"reason":"Used by node-sass for file watching. Not a direct dependency of scss-compile but required for the -w (watch) flag.","package":"chokidar","optional":true}],"imports":[{"note":"scss-compile is a CLI tool, not a JavaScript library. There is no programmatic API; it is intended to be used via npm scripts or npx.","wrong":"import scssCompile from 'scss-compile'","symbol":"no default export","correct":"npx scss-compile"},{"note":"The package registers a binary 'scss-compile' which is invoked via npm run. No require or import is possible.","wrong":"\"scripts\": { \"scss\": \"node-sass -rw src -o dist\" }","symbol":"package.json script entry","correct":"\"scripts\": { \"scss-compile\": \"scss-compile\" }"},{"note":"Works best as a global install or via npx. Saving as a project dependency and running npx scss-compile is also valid.","wrong":"npm install scss-compile --save","symbol":"global installation","correct":"npm install -g scss-compile && scss-compile"}],"quickstart":{"code":"npm install -g node-sass scss-compile\nmkdir -p assets/scss\necho '$primary: #333; body { color: $primary; }' > assets/scss/style.scss\nscss-compile\n# Note: this runs node-sass -rw assets/scss -o assets/css indefinitely (watch mode). Press Ctrl+C to stop.","lang":"shell","description":"Installs scss-compile and node-sass globally, creates a sample SCSS file, and runs the compiler in watch mode to output CSS to assets/css."},"warnings":[{"fix":"Use 'sass' package directly: npm install -g sass && sass --watch assets/scss:assets/css","message":"scss-compile has not been updated since 2016 and depends on the deprecated node-sass package, which is now replaced by Dart Sass (the official 'sass' package).","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Use the 'sass' package (Dart Sass) which is pure JavaScript and compatible with Node 14+.","message":"The scss-compile binary uses Node.js v4+ features and may fail on newer Node versions due to node-sass native module incompatibility.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use node-sass directly for one-off builds: node-sass assets/scss/style.scss assets/css/style.css","message":"scss-compile always runs in watch mode (-w flag) and loops indefinitely. It does not support one-off compilation without editing the script.","severity":"breaking","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install node-sass in the same project or globally.","cause":"node-sass is not installed. scss-compile depends on node-sass but does not install it automatically.","error":"Error: Cannot find module 'node-sass'"},{"fix":"Install globally: npm install -g scss-compile, or use npx scss-compile.","cause":"scss-compile is not installed or not in PATH.","error":"sh: scss-compile: command not found"},{"fix":"Create the directory: mkdir -p assets/scss, or edit package.json to point to your SCSS source directory.","cause":"The default input directory (assets/scss) does not exist.","error":"Error: ENOENT: no such file or directory, stat 'assets/scss'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}