我正在尝试运行以下脚本,但出现错误提示
'locale' was unexpected at this time
。我在Windows计算机上,在Git Bash中运行它。这是一个package.json
文件。
{
...
"build-lang": "for locale in en-US ar-EG es-ES; do echo Building ${locale};
ng build --configuration local-$locale; done",
...
}
'locale' was unexpected at this time
这是在nodejs package.json文件中,并且我通过以下方式执行脚本:
npm run build-lang