Spark-cli on mavericks, command not found

Hi,

I’m trying to get spark-cli on osx mavericks. I’ve installed dfu-utils and openssl with brew, and node.js, and “npm install -g spark-cli” went fine, but when i type “spark” in terminal now I get:
-bash: spark: command not found

Am I missing something?

cheers.

probably need to set your $PATH to include wherever spark installed to - /usr/local/bin on linux

1 Like

hm, yea I don’t know where it is installed either. It is not in /usr/bin or /usr/local/bin…

“locate spark” returns the npm path
/Users/blind/.npm/spark-cli

It installed here on my Mac: /usr/local/lib/node_modules/spark-cli/spark.sh

1 Like

Hmm, I’m on Mavericks 10.9.3, and npm put it here: “/usr/local/bin/spark”

Weird. I have it there as well, but it didn’t show up using locate, and I know my db is up-to-date. I’m sure /usr/local/bin/spark is the one you want anyways!

garrett$ ls -l /usr/local/bin/spark
lrwxr-xr-x  1 root  admin  42 May 16 04:02 /usr/local/bin/spark -> ../lib/node_modules/spark-cli/bin/spark.js```

I removed node and installed it through brew, then it worked fine. Thanks though!

2 Likes

I installed node from source on my laptop, so that could be one difference. I :heart: me some fresh NodeJS.

1 Like