learn-sass
learn-sass copied to clipboard
spawn error ENOENT ?
D:\Nodejs\sass>learn-sass verify stylesheet.scss
Result -->
events.js:137
throw er; // Unhandled 'error' event
^ Error: spawn C:\Users\pauli\AppData\Roaming\npm\node_modules\learn-sass\node_modules\node-sass\bin\node-sass ENOENT
at _errnoException (util.js:1003:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
at onErrorNT (internal/child_process.js:389:16)
at process._tickCallback (internal/process/next_tick.js:152:19)
node : 9.5 npm : 5.6 window : 10
Help ?
I have also these same error
https://stackoverflow.com/questions/27688804/how-do-i-debug-error-spawn-enoent-on-node-js
I have also these same error on end of 2019...
Windows 10 Nodejs 12.13.1
I found a workaround
Install global learn-sass and node-sass.
Go to the global path of learn-sass: C:\Users\Gregor\AppData\Roaming\npm\v10.14.1\node_modules\learn-sass
and edit the line 115 in execute.js
this.sassExec = path.resolve(__dirname, '../../node-sass.cmd');