3 ms·
Make has worked on Windows longer than Node.js has existed.
by Steltek 5y ago
Make has worked on Windows longer than Node.js has existed.
- nicoburns 5y agoMake works fine, it's the commands you call from make that don't tend to as compatible. For example, try running rm -rf on windows. It might work if you have GNU tools installed, but it certainly won't work out of the box. On the other hand, the node.js `rimraf` package will do the same thing with no cross-platform compatibility issues.
- Steltek 5y agoWhen using package.json, does npm intercept a script containing "rm -rf" and translate it to something different?
- geewee 5y agoNo, that's why there's a bunch of packages such as rimraf[0] that implements that sort of functionality in a cross-platform way that most people use in their scripts [0]: https://www.npmjs.com/package/rimraf https://www.npmjs.com/package/rimraf
- nicoburns 5y agoNo, but it does put binaries from any installed node packages in your PATH (locally when running scripts).
- jchw 5y agoThe history of Make on Windows would Make one think twice about relying on it. What shell do you get when running Make on Windows?