我正在本地环境中设置 PWA,并关注https://webkul.com/blog/magento2-3-pwa-studio-setup/this。
运行“yarn run build”命令时,卡在 “BABEL_ENV”处不被识别为内部或外部命令
我已经在全球安装了 babel。
我浏览了很多博客,但找不到解决方案。任何帮助将被appriciated。
$ yarn run build
yarn run v1.15.2
$ yarn workspaces run build
$ echo 'Skipping graphql-cli-validate-magento-pwa-queries build...'
'Skipping graphql-cli-validate-magento-pwa-queries build...'
$ concurrently --raw yarn:build:cjs yarn:build:esm
$ BABEL_ENV=production babel src --out-dir dist --root-mode 'upward' --source-maps
$ BABEL_ENV=development babel src --out-dir esm --root-mode 'upward' --source-maps
'BABEL_ENV' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info …Run Code Online (Sandbox Code Playgroud)