使用错误的$ PATH命令进行纱线

时间:2019-05-07 03:44:36

标签: windows powershell create-react-app yarnpkg

我对Windows开发人员来说相对较新,通常只能在linux / mac上工作。我正在浏览一些教程并尝试运行:

yarn create react-app app

但这失败了:

yarn create v1.15.2
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "create-react-app@3.0.0" with binaries:
      - create-react-app
[############################################################################################] 92/92'C:\Users\FirstName' is not recognized as an internal or external command,
operable program or batch file.
error Command failed.
Exit code: 1
Command: C:\Users\FirstName LastName\AppData\Local\Yarn\bin\create-react-app
Arguments: app
Directory: C:\Users\FirstName LastName\developer\tutorial
Output:

看我正在磨练的输出

 Command: C:\Users\FirstName LastName\AppData\Local\Yarn\bin\create-react-app

成为问题。因此,我进入了系统设置,看到了2个纱线选项,

  1. 用户路径:C:\ Users \ FirstName LastName \ AppData \ Local \ Yarn \ bin
  2. 系统路径:C:\ Program Files(x86)\ Yarn \ bin \

因此,我尝试删除用户路径,以将其强制施加到系统路径上而无济于事。我在这里是否在正确的路径/ $ Path上(对双关语很抱歉)?

0 个答案:

没有答案