enketo-core icon indicating copy to clipboard operation
enketo-core copied to clipboard

Problem with preinstall script on windows

Open hussain1368 opened this issue 1 year ago • 2 comments

There is a problem with preinstall script on windows: "preinstall": "test -f ./node_modules && ./scripts/preinstall || true" Can you please change this script to something windows friendly?

hussain1368 avatar Jul 17 '22 14:07 hussain1368

Think of an alternative and send in a PR.

yanokwa avatar Jul 17 '22 16:07 yanokwa

Actually, I am not really sure what would be the alternative. but if you can just make it work with windows? Or maybe just remove that preinstall script. Here is the error for your information:

Command: test -f ./node_modules && .\scripts\preinstall || true
Arguments:
Directory: D:\MyDTM\Apps\DQMv2\DQM\webpack\node_modules\enketo-core
Output:
'test' is not recognized as an internal or external command,
operable program or batch file.
'true' is not recognized as an internal or external command,
operable program or batch file.

hussain1368 avatar Jul 18 '22 04:07 hussain1368

Closing in favor of #855

lognaturel avatar Oct 11 '22 22:10 lognaturel