foundation/foundation-cli

command not found: foundation

Closed this issue · 2 comments

I had some issues with building an older version of Foundation 6.
I tampered with node.
Now my foundation-cli install seems to be damaged.
I only get:

zsh: command not found: foundation

If I do echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/usr/local:/sbin:~/.composer/vendor/bin

I've completely (?) uninstalled node and npm, following a few tutorials.
Also, I tried to follow https://gist.github.com/DanHerbert/9520689
Then I realized homebrew is probably not the right tool to install npm.

So I got the 10.6.0 Installer from nodejs.org instead.
I manually added ~/.npm-packages/bin to $PATH in my shell.
Now I do:

~ » echo $PATH                                                                                                                                                       
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/usr/local:/sbin:~/.composer/vendor/bin:~/.npm-packages/bin
------------------------------------------------------------
~ » ls -l ~/.npm-packages/bin                                                                                                                                        
total 0
lrwxr-xr-x  1 username  staff  52 16 Jul 23:00 foundation -> ../lib/node_modules/foundation-cli/bin/foundation.js

Still... I do foundation and all I get is

zsh: command not found: foundation

Any Help or hints???

PS: same for npm install foundation-cli (without the -g flag)

I think I got it:

Followed by the usual procedure: