我正在使用一个由
我知道它来自于
我已经从这里下载了SED并安装。安装位置为
yarn
运行的 JavaScript 应用程序。当我运行 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专业版。
操作系统版本:1909 。
操作系统类型:64位操作系统,x64-based processor。
sed is
,则还有6000多个与这个主题相关的问答。你是否阅读了这些信息来帮助解决你的问题?请务必查看并祝你好运。 - undefined