jslicense / licensee.js

check dependency licenses against rules
https://www.npmjs.com/package/licensee
Apache License 2.0
186 stars 15 forks source link

Fails to run on Windows when using --production flag #50

Closed plampila closed 5 years ago

plampila commented 5 years ago

Running on Windows fails when using the --production flag because spawning an npm process fails.

This is because spawn does not use the PATHEXT env var on Windows and does not find the npm command that is actually called npm.cmd. See: https://github.com/nodejs/node-v0.x-archive/issues/2318

Not sure what is the best way to deal with this issue. There is a cross-spawn package. Using shell option for spawn seems to be an option etc.