如何解决yarn start:all 命令适用于 mac 但在 windows 系统中为相同的 package.json 脚本值抛出错误
我正在尝试启动一个在 mac 系统中运行良好的基于 react 和 node 的应用程序,但是当我尝试在 windows 中启动时,它抛出了一个错误。
启动命令是 - yarn start:all
package.json 文件中的脚本条目是 -
"scripts": {
"docs": "jsdoc2md src/*.js src/**/*.js > API.md","build:dev": "better-npm-run build:dev","build:production": "better-npm-run build:production","style": "eslint --fix --ext .js,.jsx src config","unit": "cross-env LOG_LEVEL=warn jest","coverage": "cross-env LOG_LEVEL=warn helix test --coverage","test": "yarn style && yarn coverage","start:inspect": "nodemon --inspect .","eject": "helix eject","start": "better-npm-run start:stage","start:ordersPresentationStage": "micro_cancellations_path=http://localhost:3001/cancellations/micro yarn --cwd ../orders-presentation-helix startStage","start:laptopProxyServer": "node tools/laptopDevProxyServer.js","start:all": "concurrently --kill-others -n proxy,orders,cancellation \"yarn start:laptopProxyServer\" \"yarn start:ordersPresentationStage\" \"yarn start\"","start:production": "yarn run build:production && cross-env ASSET_PATH=/cancellationspres/assets/ NODE_ENV=production node .","build-stats:development": "yarn start -- --analyze","build-stats:production": "yarn build -- --analyze","generate:component": "helix generate:component","clean": "rimraf ./build","std-version": "standard-version"
},
我得到的错误是 - “micro_cancellations_path”不是内部或外部命令,也不是可运行的程序或批处理文件。
我假设脚本的 start:ordersPresentationStage 部分无法执行,因为无法在 Windows 系统中处理该行,但我找不到相同的替代语句。请帮忙!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。