Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Error when using Yarn to init starter kit. #176

@alanbosco

Description

@alanbosco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions