在Powershell中运行Bash脚本和链接命令

时间:2015-12-13 15:52:08

标签: node.js bash powershell npm

我在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上尝试了不同的变体,即

  1. "build-production": "set TARGET=https://gocardless.com ./script/build"
  2. 来源: How can i set NODE_ENV=production in Windows?

    1. "build-production": "set TARGET=https://gocardless.com; sh ./script/build"
    2. 来源: https://superuser.com/questions/612409/how-do-i-run-multiple-commands-on-one-line-in-powershell

      1. "build-production": "set TARGET=https://gocardless.com&&sh ./script/build"
      2. 来源: How to run .sh on Windows Command Prompt?

        问题:如何在Windows上启动并运行此repo?

0 个答案:

没有答案