plugins: Fix "Error: spawn npm ENOENT" error on Windows

On Windows, npm should be invoked as `npm.cmd`, not `npm`. Use a
drop-in replacement for `child_process.spawn()` that does the right
thing on Windows.
This commit is contained in:
Richard Hansen 2021-02-16 16:48:50 -05:00 committed by John McLear
parent 2e92e8e9d0
commit d7ed71eba0
3 changed files with 8 additions and 12 deletions

View file

@ -36,6 +36,7 @@
"cheerio": "0.22.0",
"clean-css": "4.2.3",
"cookie-parser": "1.4.5",
"cross-spawn": "^7.0.3",
"ejs": "^3.1.6",
"etherpad-require-kernel": "1.0.9",
"etherpad-yajsml": "0.0.2",