{"id":18833,"library":"stylelint-cli","title":"stylelint-cli","description":"Global CLI wrapper to execute a locally installed stylelint. Stable version 1.3.0, released on npm. Low release cadence (last release 2019). Differentiator: allows running local stylelint via global `stylelint` command, avoiding conflicts between globally and locally installed stylelint. Alternative to npx-style invocations.","status":"maintenance","version":"1.3.0","language":"javascript","source_language":"en","source_url":"https://github.com/whizark/stylelint-cli","tags":["javascript","stylelint","style","css","sass","scss","less","lint","cli"],"install":[{"cmd":"npm install stylelint-cli","lang":"bash","label":"npm"},{"cmd":"yarn add stylelint-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add stylelint-cli","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Runtime peer dependency; must be installed locally in the project.","package":"stylelint","optional":false}],"imports":[],"quickstart":{"code":"npm uninstall -g stylelint && npm install -g stylelint-cli && cd my-project && npm install --save-dev stylelint && stylelint style.css","lang":"javascript","description":"Uninstall global stylelint, install stylelint-cli globally, install local stylelint as dev dependency, then lint style.css."},"warnings":[{"fix":"Run `npm install --save-dev stylelint` in your project root.","message":"stylelint must be installed locally in the project directory; otherwise the CLI will fail.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Run `npx stylelint` or `./node_modules/.bin/stylelint`.","message":"No new releases since 2019; consider using npx stylelint or direct local invocation.","severity":"deprecated","affected_versions":">=1.3.0"},{"fix":"Upgrade Node to version 8 or higher.","message":"Drop Node 6 support in v1.2.0.","severity":"breaking","affected_versions":">=1.2.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run `npm install --save-dev stylelint` in the project directory.","cause":"stylelint not installed locally or globally after uninstalling global stylelint.","error":"Cannot find module 'stylelint'"},{"fix":"Use the CLI command `stylelint` globally, not `require('stylelint-cli')`.","cause":"Trying to require stylelint-cli as a module instead of using the CLI.","error":"ReferenceError: stylelint is not defined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}