learn-sass icon indicating copy to clipboard operation
learn-sass copied to clipboard

spawn error ENOENT ?

Open paulinedev opened this issue 7 years ago • 4 comments

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 ?

paulinedev avatar Feb 12 '18 09:02 paulinedev

I have also these same error

Phaidonas avatar Mar 25 '18 10:03 Phaidonas

https://stackoverflow.com/questions/27688804/how-do-i-debug-error-spawn-enoent-on-node-js

AndresDevelop avatar Jun 25 '18 14:06 AndresDevelop

I have also these same error on end of 2019...

Windows 10 Nodejs 12.13.1

GregorBiswanger avatar Dec 12 '19 19:12 GregorBiswanger

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');

GregorBiswanger avatar Dec 12 '19 20:12 GregorBiswanger