minify icon indicating copy to clipboard operation
minify copied to clipboard

`npm i @tdewolff/minify` fails on Windows

Open alex-jitbit opened this issue 1 year ago • 3 comments

Really wanted to try this minifier, but got an error message: npm error 'C:\Program' is not recognized as an internal or external command,

Probably because node/npm is installed in Program Files and you're missing quotes aourd a path with a space somewhere.

alex-jitbit avatar Jul 10 '24 14:07 alex-jitbit

Could your post the complete log?

tdewolff avatar Jul 10 '24 14:07 tdewolff

npm error code 1
npm error path C:\XXXXXXXXXX\node_modules\@tdewolff\minify
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp-build
npm error 'C:\Program' is not recognized as an internal or external command,
npm error operable program or batch file.

alex-jitbit avatar Jul 10 '24 16:07 alex-jitbit

Is that the whole log? This might be a node-gyp-build problem, but I'm not sure...

tdewolff avatar Jul 14 '24 15:07 tdewolff