Loopback 4购物示例抛出错误

问题描述 投票:0回答:1

您好,我刚刚下载了https://loopback.io/doc/en/lb4/Authentication-Tutorial.html#try-it-out所述的lb4购物示例。

我已经运行npm install。但是当我运行npm run docker:start时,出现以下错误

> [email protected] docker:start D:\ionic-pr\loopback-projects\tryjwt\loopback4-example-shopping
> ./bin/start-dbs.sh

'.' is not recognized as an internal or external command,

提前谢谢您

loopback loopback4
1个回答
1
投票

根据您提供的代码片段,您似乎正在使用Windows操作系统,并且回送docker内部的.sh是Shell脚本,在Windows上不可执行。为此,您可以像支持者一样安装cygwin,gitbash并尝试一下。

或者,如果使用win10,则可以参考以下内容:

https://blogs.windows.com/windowsdeveloper/2016/03/30/run-bash-on-ubuntu-on-windows/

© www.soinside.com 2019 - 2024. All rights reserved.