bitfumes / laravel-packer

Awesome Command Line Tool for speeding up your package creation.
MIT License
440 stars 44 forks source link

Packer command not found error #7

Closed PrafullaKumarSahu closed 5 years ago

PrafullaKumarSahu commented 5 years ago

Hello sir,

I just tried to install this package and unable to get it correct, please let me know, what I am doing wrong?

Prafullas-MacBook-Air:packerZero prafullakumarsahu$ composer global require bitfumes/laravel-packer --prefer-dist
Changed current directory to /Users/prafullakumarsahu/.composer
Using version ^1.4 for bitfumes/laravel-packer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
Prafullas-MacBook-Air:packerZero prafullakumarsahu$ ls
app     composer.lock   phpunit.xml routes      vendor
artisan     config      public      server.php  webpack.mix.js
bootstrap   database    readme.md   storage
composer.json   package.json    resources   tests
Prafullas-MacBook-Air:packerZero prafullakumarsahu$ packer
-bash: packer: command not found
Prafullas-MacBook-Air:packerZero prafullakumarsahu$ 
sarthaksavvy commented 5 years ago

open bash profile nano ~/.bash_profile here just past somewhere this line, export PATH=~/.composer/vendor/bin:$PATH

now save this file and exit. Restart terminal and it will work.

PrafullaKumarSahu commented 5 years ago

I am getting [ Error writing ˜/.bash_profile: No such file or directory ].

sarthaksavvy commented 5 years ago

If its not available, just create it.

PrafullaKumarSahu commented 5 years ago

Hello Sir, thank you for your reply, I created .bash_profile file inside my app root and tried packer and it again shows me undefined, so I tried to install it only for the current app and not global and I got this.

Prafullas-MacBook-Air:packerZero prafullakumarsahu$ packer
-bash: packer: command not found
Prafullas-MacBook-Air:packerZero prafullakumarsahu$ composer require bitfumes/laravel-packer --prefer-dist
^C
Prafullas-MacBook-Air:packerZero prafullakumarsahu$ composer require bitfumes/laravel-packer --prefer-dist
Content-Length mismatch, received 709535 bytes out of the expected 2264473
http://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date

Prafullas-MacBook-Air:packerZero prafullakumarsahu$ packer
-bash: packer: command not found
Prafullas-MacBook-Air:packerZero prafullakumarsahu$ composer require bitfumes/laravel-packer --prefer-dist
^C
Prafullas-MacBook-Air:packerZero prafullakumarsahu$ composer require bitfumes/laravel-packer --prefer-dist
Content-Length mismatch, received 709535 bytes out of the expected 2264473
http://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
Discovered Package: beyondcode/laravel-dump-server
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: nunomaduro/laravel-console-menu
Discovered Package: nunomaduro/laravel-console-summary
Discovered Package: nunomaduro/laravel-console-task
Discovered Package: nunomaduro/laravel-desktop-notifier
Package manifest generated successfully.
Prafullas-MacBook-Air:packerZero prafullakumarsahu$ packer
-bash: packer: command not found
Prafullas-MacBook-Air:packerZero prafullakumarsahu$ 

so, I am still unable to use this .

I am adding the whole console result when I tried running it again on gist, please help me.