我正在使用它运行的 JavaScript 应用程序yarn
。我在运行时发现了问题yarn run dev
。它显示以下错误。
yarn run v1.21.1
$ yarn fixlitepicker && rm -rf .cache/ dist/
$ sed -i 's/# sourceMappingURL/ sourceMappingURL/g' node_modules/litepicker/dist/js/main.js
'sed' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
我知道它来自package.json
脚本。
"scripts": {
"dev": "parcel src/index.html",
"build": "yarn install && yarn fixlitepicker && parcel build src/index.html",
"prebuild": "rm -rf dist",
"predev": "yarn fixlitepicker && rm -rf .cache/ dist/",
"fixlitepicker": "sed -i 's/# sourceMappingURL/ sourceMappingURL/g' node_modules/litepicker/dist/js/main.js"
},
我已经从这里下载了SED并安装了它。安装位置。但它不起作用。我看到了同样的问题。我不明白如何解决这个问题。C:\Program Files (x86)\GnuWin32
系统
操作系统:Windows 10 Pro
。
操作系统版本:1909
。
操作系统系统类型:64-bit operating system, x64-based processor
。