BirjuVachhani / spider

A small dart library to generate Assets dart code from assets folder.
https://spider.birju.dev/
Apache License 2.0
190 stars 20 forks source link

zsh: command not found: spider #74

Closed Zhamshid closed 1 year ago

Zhamshid commented 1 year ago

Describe the bug spider create, spider build watch or any spider commands not working

Expected behavior I'm activated spider package global and i wanted to create spider.yaml by command 'spider create' and it's returns me the error zsh: command not found: spider.But any other commands from flutter or dart working fine

Additional context This is my flutter doctor log flutter doctor -v 127 err | at 16:54:00 [✓] Flutter (Channel stable, 3.7.12, on macOS 13.3.1 22E772610a darwin-arm64, locale en-KZ) • Flutter version 3.7.12 on channel stable at /Users/zham4e_1/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 4d9e56e694 (2 weeks ago), 2023-04-17 21:47:46 -0400 • Engine revision 1a65d409c7 • Dart version 2.19.6 • DevTools version 2.20.1

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at /Users/zham4e_1/Library/Android/sdk ✗ cmdline-tools component is missing Run path/to/sdkmanager --install "cmdline-tools;latest" See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run flutter doctor --android-licenses to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14E222b • CocoaPods version 1.11.3

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.77.3) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.62.0

[✓] VS Code (version 1.77.1) • VS Code at /Users/zham4e_1/Downloads/Visual Studio Code.app/Contents • Flutter extension version 3.62.0

[✓] Connected device (3 available) • iPhone 14 Pro (mobile) • 2A29C43F-B4FB-4ED9-9765-34EFB992BF42 • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 13.3.1 22E772610a darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 112.0.5615.137

[✓] HTTP Host Availability • All required HTTP hosts are available

! Doctor found issues in 1 category.

BirjuVachhani commented 1 year ago

This means you don't have pub-cache/bin in your path. Running this would fix it. Don't forget to restart your terminal after executing this.

export PATH="$PATH":"~/.pub-cache/bin" >> ~/.zshrc