Nic*_*ick 5 npm-scripts yarnpkg yarnpkg-v3
我将我们的项目yarn从v1.22升级到v3.1.1。我们使用工作区,所以我有那个插件。一切看起来都很好;其他脚本可以工作,但是当尝试使用 shell 命令时,我收到此错误:
> yarn run start
command not found: if
command not found: then
command not found: fi
Run Code Online (Sandbox Code Playgroud)
这是我们的 package.json 中的脚本:
> yarn run start
command not found: if
command not found: then
command not found: fi
Run Code Online (Sandbox Code Playgroud)
我最终找到了更多的解决方法,而不是弄清楚问题是什么:
\n"scripts": {\n // ...\n "start": "/bin/sh ./start-prod.sh"\n }\nRun Code Online (Sandbox Code Playgroud)\n该脚本包含我真正需要运行的内容。\xe2\x80\x8d\xe2\x99\x82\xef\xb8\x8f
\n| 归档时间: |
|
| 查看次数: |
1201 次 |
| 最近记录: |