国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

嘗試時出錯:yarn create vite /yarn create vite my-react-app --template react
P粉764003519
P粉764003519 2023-08-29 22:59:32
0
1
887
<p>我已經使用命令 <code>npm install --global yarn</code> 在 Windows 10 中安裝了紗線,并使用 <code>yarn --version</code> 檢查了版本,它顯示了版本信息在命令中。然后我嘗試使用以下命令創(chuàng)建一個 vite 應用程序:<code>yarn create vite</code> 但它在 cmd 中顯示以下錯誤。如果您知道請給我解決方案。我嘗試卸載并重新安裝yarn,但發(fā)生了同樣的錯誤。謝謝。</p> <p>這是cmd中的錯誤:</p> <pre class="brush:php;toolbar:false;">C:\DevProjects>yarn create vite yarn create v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... success Installed "create-vite@4.3.2" with binaries: - create-vite - cva [##] 2/2'C:\Users\Graphic' is not recognized as an internal or external command, operable program or batch file. error Command failed. Exit code: 1 Command: C:\Users\Graphic Doctor\AppData\Local\Yarn\bin\create-vite Arguments: Directory: C:\DevProjects Output: info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command. C:\DevProjects></pre></p>
P粉764003519
P粉764003519

全部回復(1)
P粉511985082

我遇到了同樣的問題,但找不到通過 CLI 解決它的方法。

如果你真的堅持使用 Vite/Yarn 組合,我是這樣做的:

  1. 手動轉到(這是您問題中的目錄)C:\Users\Graphic Doctor\AppData\Local\Yarn\bin\create-vite 并手動啟動 create-vite.cmd
  2. 將會彈出一個新的命令提示符窗口,只需按照說明操作即可。
  3. 完成后,您的項目將準備就緒并位于 C:\Users\Graphic Doctor\AppData\Local\Yarn\bin 中,只需手動將其移動到您喜歡的位置即可。

祝你好運!

最新下載
更多>
網站特效
網站源碼
網站素材
前端模板