**Edit **
I found a work around as a short term fix, but it doesn't feel right as a solution.
- within my local machine, I identified that the vendor/laravel/spark folder was also just a shortcut to ./spark.
- I used the
cp linux command to duplicate rather than move all files from ./spark to /vendor/laravel/spark.
- This of course was mirrored on Vagrant; whereas before, Vagrant was showing a symlink (? not sure if that's right term) and complaining on main index page hit of non-existent references from within classloader.php / providers array in.
- Then, when I hit omega.app (my project root) while running Vagrant. I got an nginx 502 bad gateway error.
- I restarted vagrant and was advised to upgrade homestead from from 0.4.1 to 0.4.4.
- I ran
vagrant box update successfully and did not reprovision or restart vagrant.
- I then hit the main page of omega.app and got the Spark landing page. Success! sortof...
- Again, I simply forced the transfer of 500 files from ./spark to ./vendor/laravel/spark.
Proving the Workflow
- I then tried installing a new spark project following the standard procedure. For another test site, delta.app, I have the exact same error as before upon fresh instal via
spark new delta
- New Spark project 'delta' was successfully installed with the same NPM and Gulp statuses as below (Gulp fails / Elixir succeeds).
- Exactly, I mean exactly the same issue.
- When I hit delta.app with everything proper within Vagrant/homestead.yaml/etc, I get the same ClassLoader.php error as below.
- If I then copy over delta/spark directory, noting that delta is my project name, to delta/vendor/laravel/spark, I can reproduce the exact same 502 bad gateway error.
- My omega.app site is still running on vagrant correctly with the Spark landing page (successfully), while delta.app has a 502 bad gateway error.
- I then restart vagrant from my homestead directory and both my delta.app (the new one just above) and my original spark issue of omega.app are both loading the Spark landing page successfully.
For Others if Needed
This is clearly not a fix as something is wrong with my setup, with Vagrant, with symlinks, or something. @jeffreyway perhaps others will hit this issue. I've built up and broken down 20+ Laravel sites and never encountered this issue (providers array failure on install). On Windows, perhaps something obvious, perhaps something with the linkage between vendor/laravel/spark to ./spark. Perhaps, I'm just dumb, most likely the case as the good Jeffrey likes to say, "it's not the hardest thing in the world." Well, I'm 4.
So, for others that have this issue and can't wait for a solution. Note that I have no idea if this will break functionality of Spark (but it gets beyond the classloader error below)... You've got the classloader/provider array error on Windows with a Laravel/Homestead box running on Vagrant. You hit your main homepage and get information as per the error below that vendor/laravel/spark is not found or SparkServiceProvider.php failed to open or similar. Your app is failing and php artisan migrate generates an error right from the start. Do these things first:
- From your ~/homestead directory, check your vagrant box version. it should 0.4.4.
vagrant box list
- If you don't have laravel/homestead (virtualbox, 0.4.4), then go to your homestead directory and enter,
vagrant box update
- It will take a few minutes. I think it automatically provisions, but you can reprovision if you need to with
vagrant provision Don't reprovision unless you need to (can cause issues and you will lose tables (someone correct me if I'm wrong (can't remember) ).
- Build up a new spark project (assuming you can do this or already have)
spark new your-project
- You'll need to delete the original spark shortcut from within your-project/vendor/laravel/
rm spark
- Now make a new directory,
mkdir spark
- Then copy over the 500+ Spark files from your-project/spark however you want or from within your-project/spark with:
cp -r * ../vendor/laravel/spark Do this from within Git Bash or your CLI due to permissions (not from win folders)
- Now, when you hit your web root, say your-project.app, if you get a 502 or similar error, reload vagrant with
vagrant reload
- That should do it, you'll get the Spark landing page.
Conclusion
Obviously, this is a short term solution until someone with higher knowledge explains what the proper solution to this is! I was able to get two projects up and running quickly with this technique one right after the other. I did have to run vagrant reload after copying my files locally (which of course were being mirrored on vagrant). I'm running all of the above commands locally and not on Vagrant while my delta.app and omega.app are both being served via Vagrant. I would definitely copy from within Git Bash or CLI while as an admin, not from windows folders due to permission issues.
The above assumes that composer dump-autoload and all other fixes failed locally and on Vagrant to resolve the folder path/shortcut/symlink issue. This is not a long term fix. Hope that helps someone get up and running to play with Spark. If anyone can steer to the proper solution, please share.
-Marcus
**ORIGINAL POST **
Hi everyone, I'm hoping someone can rescue me from a full day of madness trying to figure this out. Here goes and huge thanks in advance for any advice offered. This is an awesome community. I've spent the day learning but failing at a Spark launch! I'm stumped.
In short, Vagrant dev environment on windows 8, working fine for multiple L 5.2 installs. Trying to get fresh install of Spark up. Spark installing correctly, API key registered, all green on "spark new project", issue with fsevents/sweetalert possible problem, series of errors upon hitting project root as: spark folder not found in vendor/laravel/spark and ClassLoader.php error upon loading Providers array. Error out of the gate on providers array loading. No changes to any config file of note (just add formbuilder). Done all the standards of dump autoload, upgrade npm and node, upgrade composer, check current laravel installer, reinstall node, etc. all listed below. maybe a simple error, if not perhaps helpful to others!
To be sure, this is a completely fresh method-based install of the framework with everything updated to the best of my ability, with a straight failure on classloader, possibly (possibly) linked to a symlink folder issue on vagrant wherein the vendor/laravel/spark folder is not properly being mirrored (way over my head) from local to vagrant causing provider array to fail.
This is my fist major post after being an avid reader, apologies on the length and the formatting if not done correctly. I'm trying to do this correctly but not confident I entered properly, happy to have an admin correct if I've gone wrong. Also, this is really long, but assuming that I'm not a complete utter foot and it's a simple fix, thought would be helpful. Below are:
- stack trace upon hitting omega.app on vagrant (note all other L 5.2 non-spark projects working fine in same env)
- spark new project readout (not verbose) including NPM and Gulp results
- composer.json and providers array from config/app.php
My error:
ErrorException in ClassLoader.php line 412:
include(/home/vagrant/Code/Omega/vendor/composer/../laravel/spark/src/Providers/SparkServiceProvider.php): failed to open stream: No such file or directory'''
**Stack Trace:**
'''in ClassLoader.php line 412
at HandleExceptions->handleError('2', 'include(/home/vagrant/Code/Omega/vendor/composer/../laravel/spark/src/Providers/SparkServiceProvider.php): failed to open stream: No such file or directory', '/home/vagrant/Code/Omega/vendor/composer/ClassLoader.php', '412', array('file' => '/home/vagrant/Code/Omega/vendor/composer/../laravel/spark/src/Providers/SparkServiceProvider.php')) in ClassLoader.php line 412
at include() in ClassLoader.php line 412
at Composer\Autoload\includeFile('/home/vagrant/Code/Omega/vendor/composer/../laravel/spark/src/Providers/SparkServiceProvider.php') in ClassLoader.php line 301
at ClassLoader->loadClass('Laravel\Spark\Providers\SparkServiceProvider')
at spl_autoload_call('Laravel\Spark\Providers\SparkServiceProvider') in ProviderRepository.php line 146
at ProviderRepository->createProvider('Laravel\Spark\Providers\SparkServiceProvider') in ProviderRepository.php line 114
at ProviderRepository->compileManifest(array('Illuminate\Auth\AuthServiceProvider', 'Illuminate\Broadcasting\BroadcastServiceProvider', 'Illuminate\Bus\BusServiceProvider', 'Illuminate\Cache\CacheServiceProvider', 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', 'Illuminate\Cookie\CookieServiceProvider', 'Illuminate\Database\DatabaseServiceProvider', 'Illuminate\Encryption\EncryptionServiceProvider', 'Illuminate\Filesystem\FilesystemServiceProvider', 'Illuminate\Foundation\Providers\FoundationServiceProvider', 'Illuminate\Hashing\HashServiceProvider', 'Illuminate\Mail\MailServiceProvider', 'Illuminate\Pagination\PaginationServiceProvider', 'Illuminate\Pipeline\PipelineServiceProvider', 'Illuminate\Queue\QueueServiceProvider', 'Illuminate\Redis\RedisServiceProvider', 'Illuminate\Auth\Passwords\PasswordResetServiceProvider', 'Illuminate\Session\SessionServiceProvider', 'Illuminate\Translation\TranslationServiceProvider', 'Illuminate\Validation\ValidationServiceProvider', 'Illuminate\View\ViewServiceProvider', 'Laravel\Spark\Providers\SparkServiceProvider', 'App\Providers\SparkServiceProvider', 'Laravel\Cashier\CashierServiceProvider', 'App\Providers\AppServiceProvider', 'App\Providers\AuthServiceProvider', 'App\Providers\EventServiceProvider', 'App\Providers\RouteServiceProvider')) in ProviderRepository.php line 60
at ProviderRepository->load(array('Illuminate\Auth\AuthServiceProvider', 'Illuminate\Broadcasting\BroadcastServiceProvider', 'Illuminate\Bus\BusServiceProvider', 'Illuminate\Cache\CacheServiceProvider', 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', 'Illuminate\Cookie\CookieServiceProvider', 'Illuminate\Database\DatabaseServiceProvider', 'Illuminate\Encryption\EncryptionServiceProvider', 'Illuminate\Filesystem\FilesystemServiceProvider', 'Illuminate\Foundation\Providers\FoundationServiceProvider', 'Illuminate\Hashing\HashServiceProvider', 'Illuminate\Mail\MailServiceProvider', 'Illuminate\Pagination\PaginationServiceProvider', 'Illuminate\Pipeline\PipelineServiceProvider', 'Illuminate\Queue\QueueServiceProvider', 'Illuminate\Redis\RedisServiceProvider', 'Illuminate\Auth\Passwords\PasswordResetServiceProvider', 'Illuminate\Session\SessionServiceProvider', 'Illuminate\Translation\TranslationServiceProvider', 'Illuminate\Validation\ValidationServiceProvider', 'Illuminate\View\ViewServiceProvider', 'Laravel\Spark\Providers\SparkServiceProvider', 'App\Providers\SparkServiceProvider', 'Laravel\Cashier\CashierServiceProvider', 'App\Providers\AppServiceProvider', 'App\Providers\AuthServiceProvider', 'App\Providers\EventServiceProvider', 'App\Providers\RouteServiceProvider')) in Application.php line 530
at Application->registerConfiguredProviders() in RegisterProviders.php line 17
at RegisterProviders->bootstrap(object(Application)) in Application.php line 203
at Application->bootstrapWith(array('Illuminate\Foundation\Bootstrap\DetectEnvironment', 'Illuminate\Foundation\Bootstrap\LoadConfiguration', 'Illuminate\Foundation\Bootstrap\ConfigureLogging', 'Illuminate\Foundation\Bootstrap\HandleExceptions', 'Illuminate\Foundation\Bootstrap\RegisterFacades', 'Illuminate\Foundation\Bootstrap\RegisterProviders', 'Illuminate\Foundation\Bootstrap\BootProviders')) in Kernel.php line 232
at Kernel->bootstrap() in Kernel.php line 127
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99
at Kernel->handle(object(Request)) in index.php line 53
My setup:
- Windows 8.1, Ubuntu 14.04.3 LTS, Homstead 3.0.2, Laravel installer 1.3.3, Vagrant 1.8.1
- Node 5.10.1, NPM 2.15.2 I had previously had Node 3.8.* but read about fsevents issues and possible solution dgrade to 2.*
- Spark Installer 1.0.3, working fine. Gulp 3.9.1.
Workflow & Steps Taken
- Other Laravel 5.2 installs working normally through Vagrant, no issues.
- Fresh dl of installer from github, followed Taylor's instructions to the T, successful API key registration, assuming all okay.
- able to successfully run "spark new project" and get all green as follows:
$ spark new omega
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
- Installing jakub-onderka/php-console-color (0.1)
Loading from cache
- Installing vlucas/phpdotenv (v2.2.0)
Loading from cache
- Installing symfony/polyfill-mbstring (v1.1.1)
Loading from cache
- Installing symfony/var-dumper (v3.0.4)
Loading from cache
- Installing symfony/translation (v3.0.4)
Loading from cache
- Installing symfony/routing (v3.0.4)
Loading from cache
- Installing symfony/process (v3.0.4)
Loading from cache
- Installing symfony/polyfill-util (v1.1.1)
Loading from cache
- Installing symfony/polyfill-php56 (v1.1.1)
Loading from cache
- Installing symfony/http-foundation (v3.0.4)
Loading from cache
- Installing symfony/event-dispatcher (v3.0.4)
Loading from cache
- Installing psr/log (1.0.0)
Loading from cache
- Installing symfony/debug (v3.0.4)
Loading from cache
- Installing symfony/http-kernel (v3.0.4)
Loading from cache
- Installing symfony/finder (v3.0.4)
Loading from cache
- Installing symfony/console (v3.0.4)
Loading from cache
- Installing swiftmailer/swiftmailer (v5.4.1)
Loading from cache
- Installing nikic/php-parser (v2.0.1)
Loading from cache
- Installing jakub-onderka/php-console-highlighter (v0.3.2)
Loading from cache
- Installing dnoegel/php-xdg-base-dir (0.1)
Loading from cache
- Installing psy/psysh (v0.7.2)
Loading from cache
- Installing paragonie/random_compat (v1.4.1)
Loading from cache
- Installing nesbot/carbon (1.21.0)
Loading from cache
- Installing mtdowling/cron-expression (v1.1.0)
Loading from cache
- Installing monolog/monolog (1.19.0)
Loading from cache
- Installing league/flysystem (1.0.20)
Loading from cache
- Installing jeremeamia/superclosure (2.2.0)
Loading from cache
- Installing doctrine/inflector (v1.1.0)
Loading from cache
- Installing classpreloader/classpreloader (3.0.0)
Loading from cache
- Installing laravel/framework (v5.2.29)
Loading from cache
- Installing fzaninotto/faker (v1.5.0)
Loading from cache
- Installing hamcrest/hamcrest-php (v1.2.2)
Loading from cache
- Installing mockery/mockery (0.9.4)
Loading from cache
- Installing phpdocumentor/reflection-docblock (2.0.4)
Loading from cache
- Installing phpunit/php-token-stream (1.4.8)
Loading from cache
- Installing symfony/yaml (v3.0.4)
Loading from cache
- Installing sebastian/version (1.0.6)
Loading from cache
- Installing sebastian/global-state (1.1.1)
Loading from cache
- Installing sebastian/recursion-context (1.0.2)
Loading from cache
- Installing sebastian/exporter (1.2.1)
Loading from cache
- Installing sebastian/environment (1.3.5)
Loading from cache
- Installing sebastian/diff (1.4.1)
Loading from cache
- Installing sebastian/comparator (1.2.0)
Loading from cache
- Installing phpunit/php-text-template (1.2.1)
Loading from cache
- Installing doctrine/instantiator (1.0.5)
Loading from cache
- Installing phpunit/phpunit-mock-objects (2.3.8)
Loading from cache
- Installing phpunit/php-timer (1.0.7)
Loading from cache
- Installing phpunit/php-file-iterator (1.4.1)
Loading from cache
- Installing phpunit/php-code-coverage (2.2.4)
Loading from cache
- Installing phpspec/prophecy (v1.6.0)
Loading from cache
- Installing phpunit/phpunit (4.8.24)
Loading from cache
- Installing symfony/css-selector (v3.0.4)
Loading from cache
- Installing symfony/dom-crawler (v3.0.4)
Loading from cache
symfony/var-dumper suggests installing ext-symfony_debug ()
symfony/translation suggests installing symfony/config ()
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/http-kernel suggests installing symfony/browser-kit ()
symfony/http-kernel suggests installing symfony/class-loader ()
symfony/http-kernel suggests installing symfony/config ()
symfony/http-kernel suggests installing symfony/dependency-injection ()
psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :))
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing ext-posix (If you have PCNTL, you'll want the POSIX extension as well.
psy/psysh suggests installing ext-readline (Enables support for arrow-key history navigation, and sh
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ req
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 serv
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP s
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Ch
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with A
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with A
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob st
league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator fo
league/flysystem suggests installing league/flysystem-copy (Allows you to use Copy.com storage)
league/flysystem suggests installing league/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use Eventa
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud F
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage vi
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapt
laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS queue driver and SES
laravel/framework suggests installing doctrine/dbal (Required to rename columns and drop SQLite colu
laravel/framework suggests installing guzzlehttp/guzzle (Required to use the Mailgun and Mandrill maes (~5.3|~6.0).)
laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 d
laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rack
laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (~3
laravel/framework suggests installing predis/predis (Required to use the redis cache and queue drive
laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast
fzaninotto/faker suggests installing ext-intl (*)
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Generating autoload files
> php -r "copy('.env.example', '.env');"
> Illuminate\Foundation\ComposerScripts::postInstall
> php artisan optimize
Generating optimized class loader
> php artisan key:generate
Application key [REDACTED] set successfully.
Application ready! Build something amazing.
**Spark Seems to Install Just Fine **
Downloading Spark...
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing stripe/stripe-php (v3.12.1)
Loading from cache
- Installing phenx/php-font-lib (0.2.2)
Loading from cache
- Installing dompdf/dompdf (v0.6.2)
Loading from cache
- Installing laravel/cashier (v6.0.14)
Loading from cache
- Installing psr/http-message (1.0)
Loading from cache
- Installing guzzlehttp/psr7 (1.3.0)
Loading from cache
- Installing intervention/image (2.3.6)
Loading from cache
- Installing ramsey/uuid (3.3.0)
Loading from cache
- Installing guzzlehttp/promises (1.1.0)
Loading from cache
- Installing guzzlehttp/guzzle (6.2.0)
Loading from cache
- Installing erusev/parsedown (1.6.0)
Loading from cache
- Installing laravel/spark (dev-master)
Junctioned from ./spark
intervention/image suggests installing ext-gd (to use GD library based image processing.)
intervention/image suggests installing ext-imagick (to use Imagick based image processing.)
intervention/image suggests installing intervention/imagecache (Caching extension for the Interventi
ramsey/uuid suggests installing ircmaxell/random-lib (Provides RandomLib for use with the RandomLibA
ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with th
ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuid
ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit inte
ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine
ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with
Writing lock file
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postUpdate
> php artisan optimize
Generating optimized class loader
Updating Configuration Values: ✔
Updating Environment File: ✔
Updating Routes File: ✔
Updating Controllers: ✔
Updating Middleware: ✔
Updating HTTP Kernel: ✔
Installing Images: ✔
Installing Database Migrations: ✔
Installing Eloquent Models: ✔
Installing Service Providers: ✔
Installing JavaScript & Less Assets: ✔
Installing Language Files: ✔
Installing Views: ✔
Laravel Spark installed. Create something amazing!
** Now on to NPM Dependencies**
Answering YES to NPM, there's the note about [emphasis] fsevents having an issue, which a lot of people over at github and stackoverflow have expressed. I can't seem to figure out if this might be the issue. I downgraded from Node v3.8.x to v2.15.x per other notes on github regarding this issue. I was unable to resolve the install of fsevents despite any attempt / seems incompatible with my win 8 setup. Thanks for your help and hopefully this will be helpful to others (and I won't look like a complete idiot (which is probable) given that this likely going to be something anyone other than I would know)!
Would you like to install the NPM dependencies? (yes/no) [yes]:
> yes
Installing NPM Dependencies...
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releas soon as possible.
npm WARN optional dep failed, continuing fsevents@1.0.11
npm WARN deprecated chalkline@0.0.4: No longer sponsored by CT - please visit http://niftylettuce.co
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN optional dep failed, continuing fsevents@1.0.11
npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releas soon as possible.
npm WARN optional dep failed, continuing fsevents@1.0.11
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of dat
> spawn-sync@1.0.15 postinstall C:\code\omega\node_modules\laravel-elixir\node_modules\gulp-sass\nodwn\node_modules\spawn-sync
> node postinstall
> node-sass@3.4.2 install C:\code\omega\node_modules\laravel-elixir\node_modules\gulp-sass\node_modu
> node scripts/install.js
Binary downloaded and installed at C:\code\omega\node_modules\laravel-elixir\node_modules\gulp-sass\\binding.node
> node-sass@3.4.2 postinstall C:\code\omega\node_modules\laravel-elixir\node_modules\gulp-sass\node_
> node scripts/build.js
` C:\code\omega\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\vendor\win
testing binary.
Binary is fine; exiting.
underscore@1.8.3 node_modules\underscore
urijs@1.17.1 node_modules\urijs
js-cookie@2.1.1 node_modules\js-cookie
vue-resource@0.5.1 node_modules\vue-resource
promise@7.1.1 node_modules\promise
└── asap@2.0.3
sweetalert@1.1.3 node_modules\sweetalert
jquery@2.2.3 node_modules\jquery
bootstrap@3.3.6 node_modules\bootstrap
gulp@3.9.1 node_modules\gulp
├── interpret@1.0.0
├── pretty-hrtime@1.0.2
├── deprecated@0.0.1
├── archy@1.0.0
├── minimist@1.2.0
├── tildify@1.2.0 (os-homedir@1.0.1)
├── semver@4.3.6
├── v8flags@2.0.11 (user-home@1.1.1)
├── chalk@1.1.3 (escape-string-regexp@1.0.5, supports-color@2.0.0, ansi-styles@2.2.1, has-ansi@2.0.0
├── orchestrator@0.3.7 (stream-consume@0.1.0, sequencify@0.0.7, end-of-stream@0.1.5)
├── liftoff@2.2.1 (extend@2.0.1, rechoir@0.6.2, flagged-respawn@0.3.2, findup-sync@0.3.0, resolve@1.
├── vinyl-fs@0.3.14 (graceful-fs@3.0.8, strip-bom@1.0.0, defaults@1.0.3, vinyl@0.4.6, through2@0.6.5atcher@0.0.6)
└── gulp-util@3.0.7 (array-differ@1.0.0, array-uniq@1.0.2, lodash._reescape@3.0.0, beeper@1.1.0, lod, lodash._reinterpolate@3.0.0, replace-ext@0.0.1, has-gulplog@0.1.0, fancy-log@1.2.0, vinyl@0.5.3, ggh2@2.0.1, multipipe@0.1.2, dateformat@1.0.12)
vue@1.0.21 node_modules\vue
└── envify@3.4.0 (through@2.3.8, jstransform@10.1.0)
moment@2.12.0 node_modules\moment
laravel-elixir@4.2.1 node_modules\laravel-elixir
├── gulp-rename@1.2.2
├── path@0.11.14
├── underscore-deep-extend@0.0.5
├── insert-css@0.2.0
├── require-dir@0.3.0
├── partialify@3.1.6 (string-to-js@0.0.1, through@2.3.8)
├── run-sequence@1.1.5 (chalk@1.1.3)
├── parse-filepath@0.5.0 (path-ends-with@0.2.3)
├── vinyl-paths@1.0.0 (through2@0.6.5)
├── merge-stream@0.1.8 (through2@0.6.5)
├── glob@5.0.15 (path-is-absolute@1.0.0, inherits@2.0.1, once@1.3.3, inflight@1.0.4, minimatch@3.0.0
├── gulp-rev@5.1.0 (object-assign@2.1.1, rev-hash@1.0.0, sort-keys@1.1.1, rev-path@1.0.0, vinyl-file
├── vinyl-source-stream@1.1.0 (vinyl@0.4.6, through2@0.6.5)
├── gulp-concat@2.6.0 (concat-with-sourcemaps@1.0.4, through2@0.6.5)
├── vinyl-buffer@1.0.0 (through2@0.6.5, bl@0.9.5)
├── gulp-sourcemaps@1.6.0 (graceful-fs@4.1.3, convert-source-map@1.2.0, strip-bom@2.0.0, vinyl@1.1.1
├── gulp-rev-replace@0.4.3 (through2@2.0.1)
├── gulp-batch@1.0.5 (async-done@1.2.0, stream-array@1.1.1)
├── gulp-load-plugins@1.2.2 (multimatch@2.0.0, findup-sync@0.2.1, resolve@1.1.7)
├── gulp-coffee@2.3.2 (merge@1.2.0, coffee-script@1.10.0, through2@0.6.5, vinyl-sourcemaps-apply@0.1
├── del@1.2.1 (is-path-cwd@1.0.0, object-assign@3.0.0, each-async@1.1.1, globby@2.1.0, is-path-in-cw
├── gulp-if@1.2.5 (through2@0.6.5, gulp-match@0.2.1, ternary-stream@1.2.3)
├── gulp-watch@4.3.5 (path-is-absolute@1.0.0, glob2base@0.0.12, vinyl@0.5.3, vinyl-file@1.3.0, choki@2.1.0)
├── gulp-util@3.0.7 (array-differ@1.0.0, array-uniq@1.0.2, lodash._reevaluate@3.0.0, lodash._reescap, lodash._reinterpolate@3.0.0, replace-ext@0.0.1, has-gulplog@0.1.0, fancy-log@1.2.0, minimist@1.2.0e@3.6.2, gulplog@1.0.0, through2@2.0.1, multipipe@0.1.2, dateformat@1.0.12)
├── gulp-uglify@1.5.3 (uglify-save-license@0.4.1, deap@1.0.0, isobject@2.0.0, vinyl-sourcemaps-applyglify-js@2.6.2)
├── gulp-notify@2.2.0 (node.extend@1.1.5, lodash.template@3.6.2, through2@0.6.5, node-notifier@4.5.0
├── gulp-phpunit@0.11.3 (map-stream@0.0.6, chalk@1.1.3, gulp-util@2.2.20, gulp-messenger@0.7.0, node
├── gulp-phpspec@0.5.4 (map-stream@0.0.4, chalk@1.1.3, jshint-stylish@1.0.2, chai@2.3.0, gulp-util@2, expect@1.16.0, gulp-logger@0.0.2, lodash@3.10.1, jshint@2.9.1)
├── browserify@11.2.0 (https-browserify@0.0.1, tty-browserify@0.0.0, path-browserify@0.0.0, constantns@0.0.7, string_decoder@0.10.31, browser-resolve@1.11.1, isarray@0.0.1, os-browserify@0.1.2, inheri, commondir@0.0.1, stream-browserify@2.0.1, assert@1.3.0, shell-quote@0.0.1, defined@1.0.0, domain-b@0.2.1, timers-browserify@1.4.2, util@0.10.3, deps-sort@1.3.9, events@1.0.2, parents@1.0.1, vm-brows@1.1.0, url@0.10.3, subarg@1.0.0, concat-stream@1.4.10, through2@1.1.1, duplexer2@0.0.2, shasum@1.0..1, buffer@3.6.0, glob@4.5.3, JSONStream@1.1.1, resolve@1.1.7, browserify-zlib@0.1.4, syntax-error@1r-pack@5.0.1, readable-stream@2.1.0, insert-module-globals@6.6.3, crypto-browserify@3.11.0, module-d
├── watchify@3.7.0 (defined@1.0.0, xtend@4.0.1, through2@2.0.1, outpipe@1.1.1, anymatch@1.3.0, choki
├── gulp-autoprefixer@2.3.1 (object-assign@2.1.1, through2@0.6.5, vinyl-sourcemaps-apply@0.1.4, post
├── gulp-cssnano@2.1.1 (object-assign@4.0.1, vinyl-sourcemaps-apply@0.2.1, cssnano@3.5.2)
├── gulp-shell@0.5.2 (async@1.5.2, through2@2.0.1, lodash@4.11.1)
├── gulp-less@3.0.5 (object-assign@4.0.1, vinyl-sourcemaps-apply@0.2.1, through2@2.0.1, accord@0.20.
├── browser-sync@2.12.3 (ucfirst@1.0.0, emitter-steward@1.0.0, dev-ip@1.0.1, immutable@3.7.6, ua-parr-sync-client@2.4.2, http-proxy@1.13.2, portscanner@1.0.0, connect@3.4.1, serve-static@1.10.2, resp-o@1.4.5, fs-extra@0.26.7, serve-index@1.7.3, yargs@4.4.0, chokidar@1.4.3, localtunnel@1.8.1, bs-recir@2.1.3, lodash@4.10.0, browser-sync-ui@0.5.19)
├── babel-preset-react@6.5.0 (babel-plugin-transform-react-display-name@6.5.0, babel-plugin-transfornsform-react-jsx@6.7.5, babel-plugin-transform-react-jsx-source@6.5.0, babel-plugin-syntax-flow@6.5.
├── babelify@7.2.0 (object-assign@4.0.1, babel-core@6.7.6)
├── gulp-babel@6.1.2 (object-assign@4.0.1, replace-ext@0.0.1, vinyl-sourcemaps-apply@0.2.1, through2
├── babel-preset-es2015@6.6.0 (babel-plugin-transform-es2015-template-literals@6.6.5, babel-plugin-t-transform-es2015-unicode-regex@6.5.0, babel-plugin-transform-es2015-function-name@6.5.0, babel-plugbel-plugin-transform-es2015-duplicate-keys@6.6.4, babel-plugin-transform-es2015-literals@6.5.0, babe@6.7.4, babel-plugin-transform-es2015-object-super@6.6.5, babel-plugin-transform-es2015-destructurints@6.7.2, babel-plugin-transform-es2015-typeof-symbol@6.6.0, babel-plugin-transform-es2015-for-of@6.coped-functions@6.6.5, babel-plugin-transform-es2015-shorthand-properties@6.5.0, babel-plugin-transfin-transform-es2015-arrow-functions@6.5.2, babel-plugin-transform-es2015-computed-properties@6.6.5, .7.0, babel-plugin-transform-es2015-classes@6.6.5, babel-plugin-transform-regenerator@6.6.5)
└── gulp-sass@2.2.0 (object-assign@4.0.1, vinyl-sourcemaps-apply@0.2.1, through2@2.0.1, node-sass@3.
Gulp Fails
Elixir succeeds but browserify fails. May be on account of my removing the node-modules folder from as per others had advised. I deleted node-modules a while back, so working on this, but not super convinced this is the issue as I had previously gotten green on both Elixir and Browserify compiling on "gulp" when I had Node 3.8.x running -> SAME error on classloader.php.
Would you like to run Gulp? (yes/no) [yes]:
> yes
Running Gulp...
[17:14:26] Using gulpfile C:\code\omega\gulpfile.js
[17:14:26] Starting 'default'...
[17:14:26] Starting 'less'...
Fetching Less Source Files...
- resources\assets\less\app.less
Saving To...
- public\css\app.css
[17:14:28] Finished 'default' after 1.91 s
[17:14:29] gulp-notify: [Laravel Elixir] Less Compiled!
[17:14:30] Finished 'less' after 3.43 s
[17:14:30] Starting 'browserify'...
Fetching Browserify Source Files...
- resources\assets\js\app.js
Saving To...
- public\js\app.js
[17:14:31] gulp-notify: [Laravel Elixir] Browserify Failed!: Couldn't find preset "es2015" relative assets\\js" while parsing file: C:\code\omega\resources\assets\js\app.js
{ [Error: Couldn't find preset "es2015" relative to directory "C:\\code\\omega\\resources\\assets\\jrces\assets\js\app.js]
filename: 'C:\\code\\omega\\resources\\assets\\js\\app.js',
I removed some code above from gulp (assumed not needed) / Gulp fails on browserify. Had previously working / same classloader error. Will paste if needed.
Another Error: cannot resolve Directory - /vendor/laravel/spark
Previously I had another error in which on Vagrant wherein when I hit the main web root, say omega.app, I would get a statement that the vendor/laravel/spark directory could not be found. I can't replicate this error any more but had it when I would fudge around with the providers array in config\app.php, specifically I was commenting out spark and cashier key/value pairs in both the Providers and the aliases arrays, trying to see if I get could more insight into why classloader was failing.
Upon further review on Vagrant, again apologies for my ignorance here if this is known/obvious to most, the omega/vendor/laravel/spark folder seemed to be just a symlink and not an actual folder (maybe the problem?). On my local environment, the vendor/laravel/spark folder is fully populated. None of the files locally seem to be transferring over to the vagrant synced folder vendor/laravel/spark. Note that all of my other laravel projects on vagrant are working normally.
To be sure, I have not changed composer.json or config\app.php in any way beyond adding LaravelCollective . Those are posted below but no fussing around. I have run all of the standard that I can think of, including heavy attempts at composer dump-autoload (with hyphen and w/o) on both local and vagrant, as well as updating composer and running composer install. I've deleted composer.lock and ran composer update and then composer install. I've cleared cache. I've restarted Git Bash sessions. I have reprovisioned Vagrant. I have NOT restarted my machine or done a cold boot of Vagrant, assuming that should not be necessary.
Lastly, I HAVE repeated this process more than 4x on installs using the same set of commands over the past 6 hours, all with the Spark installer, all with all green except for fsevents and most recently SweetAlert (the latter of which shouldn't break the install). So, I'm wondering if this maybe an NPM or Node or some other windows based issue. Again, super thankful for any and all help!
Finally, here's composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"laravel/cashier": "~6.0",
"laravel/spark": "*@dev"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"symfony/css-selector": "2.8.*|3.0.*",
"symfony/dom-crawler": "2.8.*|3.0.*"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist"
},
"repositories": [
{
"type": "path",
"url": "./spark"
}
]
}
Providers and Aliases Array No other changes in app.php
'providers' => [
/*
* Laravel Framework Service Providers...
*/
Illuminate\Auth\AuthServiceProvider::class,
Illuminate\Broadcasting\BroadcastServiceProvider::class,
Illuminate\Bus\BusServiceProvider::class,
Illuminate\Cache\CacheServiceProvider::class,
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
Illuminate\Cookie\CookieServiceProvider::class,
Illuminate\Database\DatabaseServiceProvider::class,
Illuminate\Encryption\EncryptionServiceProvider::class,
Illuminate\Filesystem\FilesystemServiceProvider::class,
Illuminate\Foundation\Providers\FoundationServiceProvider::class,
Illuminate\Hashing\HashServiceProvider::class,
Illuminate\Mail\MailServiceProvider::class,
Illuminate\Pagination\PaginationServiceProvider::class,
Illuminate\Pipeline\PipelineServiceProvider::class,
Illuminate\Queue\QueueServiceProvider::class,
Illuminate\Redis\RedisServiceProvider::class,
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
Illuminate\Session\SessionServiceProvider::class,
Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
/*
* Application Service Providers...
*/
Laravel\Spark\Providers\SparkServiceProvider::class,
App\Providers\SparkServiceProvider::class,
Laravel\Cashier\CashierServiceProvider::class,
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
],
'aliases' => [
'App' => Illuminate\Support\Facades\App::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class,
'Cache' => Illuminate\Support\Facades\Cache::class,
'Config' => Illuminate\Support\Facades\Config::class,
'Cookie' => Illuminate\Support\Facades\Cookie::class,
'Crypt' => Illuminate\Support\Facades\Crypt::class,
'DB' => Illuminate\Support\Facades\DB::class,
'Eloquent' => Illuminate\Database\Eloquent\Model::class,
'Event' => Illuminate\Support\Facades\Event::class,
'File' => Illuminate\Support\Facades\File::class,
'Gate' => Illuminate\Support\Facades\Gate::class,
'Hash' => Illuminate\Support\Facades\Hash::class,
'Lang' => Illuminate\Support\Facades\Lang::class,
'Log' => Illuminate\Support\Facades\Log::class,
'Mail' => Illuminate\Support\Facades\Mail::class,
'Password' => Illuminate\Support\Facades\Password::class,
'Queue' => Illuminate\Support\Facades\Queue::class,
'Redirect' => Illuminate\Support\Facades\Redirect::class,
'Redis' => Illuminate\Support\Facades\Redis::class,
'Request' => Illuminate\Support\Facades\Request::class,
'Response' => Illuminate\Support\Facades\Response::class,
'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class,
'Storage' => Illuminate\Support\Facades\Storage::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
],
This is the error I get upon "php artisan migrate" from Vagrant . no need for a DB yet, as I'm failing prior to any such attempt.
vagrant@homestead:~/Code/omega$ ls
app composer.lock node_modules readme.md storage
artisan config package.json resources terms.md
bootstrap database phpunit.xml server.php tests
composer.json gulpfile.js public spark vendor
vagrant@homestead:~/Code/omega$ php artisan migrate
[ErrorException]
include(/home/vagrant/Code/omega/vendor/composer/../laravel/spark/src/Provi
ders/SparkServiceProvider.php): failed to open stream: No such file or dire
ctory
This may be my problem, but I don't know what's causing it. Everything else mapping but not files into vendors/laravel/spark... on Vagrant.
There it is! Big thanks to Taylor, Jeff, Bashy, Dayle, Eric,and all of you for making Laravel such a pleasure to work with!