Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

TheFriendlyHacker's avatar

Issues with Laravel Spark Installer

I recently purchased a license for Spark 6.0 and installed the latest version of the spark-installer.

When I try to create a new Spark project spark new ProjectName --braintree --team-billing I get some errors when trying to install and compile NPN dependencies.

The first error occurs when trying to install NPM stuff:

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found
sh: line 1: 33560 Abort trap: 6           npm set progress=false

The second one occurs when trying to compile the assets:

The process has been signaled with signal "6".

Has anybody else encountered this, and/or does anybody know how to work around it?

My local machine is running PHP 7.2

Thank you!

0 likes
6 replies
ejdelmonico's avatar

I haven't completed a fresh Spark 6.0 install yet. Are you installing in the project root? There are 2 package.json files, one in the project root and one in the spark directory. And that error looks like a dev environment config error.

1 like
TheFriendlyHacker's avatar

@ejdelmonico I have a directory on my Mac that I put all of my projects into. With previous versions of Spark (<= 5.x.x), running spark new ProjectName would generate a new Spark project without any issues.

I'm not installing Spark into an existing Laravel project, if that is what you're asking.

ejdelmonico's avatar

What I am saying is that when you run a Spark install, you laravel with a package.json in the root of the project and a spark directory that also has a package.json. I was just making sure you knew of the second one. There have been times where the install had missed some packages so I ran npm install in both directories and fixed the issue. Also, make sure you are using the latest node version.

As far as your error message, I have seen that pop up with Homebrew php installs. Are you using Homebrew?

TheFriendlyHacker's avatar

@ejdelmonico Thanks for the heads up! I will try manually running NPM and see if that works.

And yes, everything was installed via Homebrew.

Cronix's avatar

I haven't had any problems using composer to install. I have had some using the Spark Installer, and if you use it you have to keep updating the installer. It's just easier using composer. You don't run into issues.

ejdelmonico's avatar

I would say that there is a node install issue. Try installing or reinstalling (brew reinstall node) the latest node or at minimum the latest LTS which is 8.11.1. Also, brew doctor might give the solution.

1 like

Please or to participate in this conversation.