sass: Could not find an option named "watch" error
I installed sass from npm globally
npm install -g sass
Then from official documentation Doc link, I entered --watch command from my terminal. I am in the same directory where are the css and scss files are located.
sass --watch main.scss main.css
Ang it gave me an error.
Could not find an option named "watch".
Despite I have installed sass via npm globally ‘watch’ command is not recognizable by sass.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 12
- Comments: 15 (5 by maintainers)
@Alpsenel I got a similar issue for watching sass files. This is what I recommend:
sass --version
(optional)gem uninstall sass
gem install sass -v 3.4.0
(note; latest stable version is 3.5.6)Any prediction of when the watch command will be implemented?
The Sass website documentation was referring to Ruby Sass, which has been deprecated. Dart Sass, which you installed via npm, doesn’t yet support
--watch
(https://github.com/sass/dart-sass/issues/264).I’ve updated the website to stop mentioning
--watch
until we have it implemented in Dart Sass.