rust-webpack-template icon indicating copy to clipboard operation
rust-webpack-template copied to clipboard

Error when using Yarn to init starter kit.

Open alanbosco opened this issue 5 years ago • 1 comments

I tried to initialize with yarn instead of npm.

yarn create rust-webpack test-app

ERROR

yarn create v1.22.4          
[1/4] Resolving packages...      
[2/4] Fetching packages...   
[3/4] Linking dependencies...   
[4/4] Building fresh packages...       
success Installed "[email protected]" with binaries:  
create-rust-webpack      
 /bin/sh: 1: /home/alan/.yarn/bin/create-rust-webpack: not found 
error Command failed.         
Exit code: 127                                                      
Command: /home/alan/.yarn/bin/create-rust-webpack
Arguments: test-app                                          
Directory: /mnt/d/Projects/Web/webassembly                
Output:  
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

I tried these

yarn global add create-rust-webpack
create-rust-webpack my-app

lead to :

zsh: command not found: create-rust-webpack

and then

yarn global add https://github.com/rustwasm/rust-webpack-template
create-rust-webpack my-app

again leads to :

zsh: command not found: create-rust-webpack

With NPM this works perfectly.

node - v14.15.0 yarn - v1.22.4 WSL Ubuntu - 20.04.1 LTS shell - zsh

alanbosco avatar Oct 31 '20 21:10 alanbosco

Yarn Global Doc

alanbosco avatar Oct 31 '20 21:10 alanbosco