Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using Yarn to init starter kit. #176

Open
alanbosco opened this issue Oct 31, 2020 · 1 comment
Open

Error when using Yarn to init starter kit. #176

alanbosco opened this issue Oct 31, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@alanbosco
Copy link

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 alanbosco added the bug Something isn't working label Oct 31, 2020
@alanbosco
Copy link
Author

Yarn Global Doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant