我想在我的 Windows 中运行一个 React 项目(作为我的 Mac 的虚拟机)。
在命令提示符下,运行yarn
后安装依赖项。我做到了yarn start
。它给了我'HTTPS' is not recognized as an internal or external command
错误。
> yarn start
yarn run v1.13.0
$ HTTPS=true CERT=cert/localhost.crt KEY=cert/localhost.key umi dev
'HTTPS' 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.
有谁知道如何解决这一问题?
编辑 1:
我将节点升级到v12.16.1
(yarn
到1.13.0
,npm 到6.13.4
),并且做了yarn add https
和yarn add https-localhost
。然而,yarn start
还是回来了'HTTPS' is not recognized as an internal or external command
。
umi dev
返回'umi' is not recognized as an internal or external command, operable program or batch file.
:
>umi dev
'umi' is not recognized as an internal or external command,
operable program or batch file.