我在Windows上运行此存储库时遇到问题,因为从我所看到的,它在Unix环境中大量开发。
https://github.com/gocardless/splash-pages
从package.json开始,我正在尝试运行脚本npm run build-production
,但由于它依赖于bash file,因此无效。
这是给定的命令:
"build-production": "TARGET=https://gocardless.com ./script/build"
我在Windows上尝试了不同的变体,即
"build-production": "set TARGET=https://gocardless.com ./script/build"
来源: How can i set NODE_ENV=production in Windows?
"build-production": "set TARGET=https://gocardless.com; sh ./script/build"
来源: https://superuser.com/questions/612409/how-do-i-run-multiple-commands-on-one-line-in-powershell
"build-production": "set TARGET=https://gocardless.com&&sh ./script/build"
来源: How to run .sh on Windows Command Prompt?
问题:如何在Windows上启动并运行此repo?