PS C:\Users\macke> npm i -g -f zx
npm WARN using --force I sure hope you know what you are doing.
C:\Users\macke\AppData\Roaming\npm\zx -> C:\Users\macke\AppData\Roaming\npm\node_modules\zx\zx.mjs
+ [email protected]
updated 1 package in 0.594s
PS C:\Users\macke> zx -h
'command' is not recognized as an internal or external command,
operable program or batch file.
'which' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the file specified.
Error occurred while processing: -p.
The system cannot find the file specified.
Error occurred while processing: bash.
child_process.js:616
err = new Error(msg);
^
Error: Command failed: command -v bash || which bash || type -p bash
'command' is not recognized as an internal or external command,
operable program or batch file.
'which' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the file specified.
Error occurred while processing: -p.
The system cannot find the file specified.
Error occurred while processing: bash.
at checkExecSyncError (child_process.js:616:11)
at execSync (child_process.js:652:15)
at file:///C:/Users/macke/AppData/Roaming/npm/node_modules/zx/index.mjs:75:14
at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
at async Loader.import (internal/modules/esm/loader.js:166:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5) {
status: 1,
signal: null,
output: [
null,
Buffer(0) [Uint8Array] [],
Buffer(360) [Uint8Array] [
39, 99, 111, 109, 109, 97, 110, 100, 39, 32, 105, 115,
32, 110, 111, 116, 32, 114, 101, 99, 111, 103, 110, 105,
122, 101, 100, 32, 97, 115, 32, 97, 110, 32, 105, 110,
116, 101, 114, 110, 97, 108, 32, 111, 114, 32, 101, 120,
116, 101, 114, 110, 97, 108, 32, 99, 111, 109, 109, 97,
110, 100, 44, 13, 10, 111, 112, 101, 114, 97, 98, 108,
101, 32, 112, 114, 111, 103, 114, 97, 109, 32, 111, 114,
32, 98, 97, 116, 99, 104, 32, 102, 105, 108, 101, 46,
13, 10, 39, 119,
... 260 more items
]
],
pid: 21584,
stdout: Buffer(0) [Uint8Array] [],
stderr: Buffer(360) [Uint8Array] [
39, 99, 111, 109, 109, 97, 110, 100, 39, 32, 105, 115,
32, 110, 111, 116, 32, 114, 101, 99, 111, 103, 110, 105,
122, 101, 100, 32, 97, 115, 32, 97, 110, 32, 105, 110,
116, 101, 114, 110, 97, 108, 32, 111, 114, 32, 101, 120,
116, 101, 114, 110, 97, 108, 32, 99, 111, 109, 109, 97,
110, 100, 44, 13, 10, 111, 112, 101, 114, 97, 98, 108,
101, 32, 112, 114, 111, 103, 114, 97, 109, 32, 111, 114,
32, 98, 97, 116, 99, 104, 32, 102, 105, 108, 101, 46,
13, 10, 39, 119,
... 260 more items
]
}