Registry / devops / scss-compile

scss-compile

JSON →
library0.1.7jsnpmunverified

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.

npm install scss-compile
INSTALL
IMPORT
SIG · SCSS-COMPILE
S
scss-compile
devopsjavascriptv0.1.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

no default export
npx scss-compile
import scssCompile from 'scss-compile'
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.
package.json script entry
"scripts": { "scss-compile": "scss-compile" }
"scripts": { "scss": "node-sass -rw src -o dist" }
The package registers a binary 'scss-compile' which is invoked via npm run. No require or import is possible.
global installation
npm install -g scss-compile && scss-compile
npm install scss-compile --save
Works best as a global install or via npx. Saving as a project dependency and running npx scss-compile is also valid.

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.

npm install -g node-sass scss-compile mkdir -p assets/scss echo '$primary: #333; body { color: $primary; }' > assets/scss/style.scss scss-compile # Note: this runs node-sass -rw assets/scss -o assets/css indefinitely (watch mode). Press Ctrl+C to stop.
scss-compile --version
Debug
Known issues
deprecatedscss-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).
fix
Use 'sass' package directly: npm install -g sass && sass --watch assets/scss:assets/css
affects: >=0.0.0
gotchaThe scss-compile binary uses Node.js v4+ features and may fail on newer Node versions due to node-sass native module incompatibility.
fix
Use the 'sass' package (Dart Sass) which is pure JavaScript and compatible with Node 14+.
affects: >=0.1.0
breakingscss-compile always runs in watch mode (-w flag) and loops indefinitely. It does not support one-off compilation without editing the script.
fix
Use node-sass directly for one-off builds: node-sass assets/scss/style.scss assets/css/style.css
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'node-sass'
node-sass is not installed. scss-compile depends on node-sass but does not install it automatically.
fix
npm install node-sass in the same project or globally.
sh: scss-compile: command not found
scss-compile is not installed or not in PATH.
fix
Install globally: npm install -g scss-compile, or use npx scss-compile.
Error: ENOENT: no such file or directory, stat 'assets/scss'
The default input directory (assets/scss) does not exist.
fix
Create the directory: mkdir -p assets/scss, or edit package.json to point to your SCSS source directory.
Upgrade
Version history
0.1.7latest on npm
Audit
Dependencies
node-sassrequiredscss-compile is a thin wrapper that executes node-sass internally. It is a direct runtime dependency and must be installed alongside scss-compile.
chokidaroptionalUsed by node-sass for file watching. Not a direct dependency of scss-compile but required for the -w (watch) flag.
Agent activity
2 hits · last 30 days
node
2
Resources
scss-compile — npm install scss-compile · libregistry