fang

vite创建项目 create-vite 报错2/2文件名、目录名或卷标语法不正确

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
λ 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.4.1" with binaries:                              
      - create-vite                                                              
      - cva                                                                      
[##] 2/2文件名、目录名或卷标语法不正确。                                                          
error Command failed.                                                            
Exit code: 1                                                                      
Command: D:\dev_env\nodejs\node_global\bin\create-vite                            
Arguments:                                                                        
Directory: D:\code\vue_code\backend                                              
Output:

解决
yarn global dir 查看yarn global目录

设置为reate-vite所在目录即可

1
yarn config set global-folder "D:\dev_env\nodejs\node_global"
赞(0) 打赏
标签:

上一篇:

下一篇:

相关推荐

0 条评论关于"success Installed “create-vite@4.4.1” with binaries: – create-vite – cva [##] 2/2文件名、目录名或卷标语法不正确。 error Command failed. Exit code: 1"

表情

最新评论

    暂无留言哦~~

支付宝扫一扫打赏

微信扫一扫打赏