mitmproxy-node icon indicating copy to clipboard operation
mitmproxy-node copied to clipboard

postinstall failing: 'scripts' is not recognized as an internal or external command (windows)

Open Zertuk opened this issue 7 years ago • 4 comments

Trying to npm install BLeak, but am running into an issue with mitmproxy-node failing its postinstall script. Here is the error message:

> [email protected] postinstall C:\Users\jforcier\AppData\Roaming\npm\node_modules\mitmproxy
> scripts/install_python_deps.py

'scripts' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `scripts/install_python_deps.py`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\jforcier\AppData\Roaming\npm-cache\_logs\2018-09-24T19_40_06_833Z-debug.log

Cloning the repo and replacing the postinstall path with the direct path is my current work around. This is reproducible on multiple windows computers, but I don't have easy access to other OSs to see whether its windows only or not.

Zertuk avatar Sep 24 '18 19:09 Zertuk

same issue here

sayore avatar Oct 29 '18 12:10 sayore

Yes it's because you're on windows. Does this work inside the Windows Subsystem for Linux? Mitmproxy suggests installing that way anyways.

Jonahss avatar Mar 22 '19 17:03 Jonahss

how can i run it in windows

saisixthblock avatar Jul 06 '23 10:07 saisixthblock

i am also getting same error. how can i clear in windows 11

saisixthblock avatar Jul 06 '23 10:07 saisixthblock