Building blocks --- error using CLI install

hello everyone!

i am new to this forum (and to foundation actually) so i hope i am doing this the right way.
i have an issue when trying to install building blocks using CLI, and i did not find any information about this.

$foundation blocks install large-article-header
error fetching file /building-blocks/files/building-blocks/large-article-header/large-article-header.js

i get the same issue when trying to installing kits:

$foundation kits install news
error fetching file /building-blocks/data/kits.json

am i doing something wrong? i have Foundation CLI version 2.2.5 installed, and created a ZURB template.

thanks!

Hi,

you are doing everything correct. See https://github.com/foundation/foundation-cli/issues/122

You can try to install the CLI using npm i -g foundation/foundation-cli s these changes did not yet land in a release.

Or try finding the files using by foundation-cli with whereis foundation on macOS and Linux systems and manually change the URLs.

I replaced foundation.zurb.com with get.foundation in all files of foundation-cli.

You don't appear to be in a ZURB stack project, so we can't automatically install building blocks
? Do you want to download as a zip file? Yes
error fetching file /building-blocks/files/kits/news.zip
could not find kit: news
➜  foundation-cli-test whereis foundation
foundation: /home/druf/.yarn/bin/foundation
➜  foundation-cli-test cd /home/druf/.yarn/bin/
➜  bin ls -al
insgesamt 28
drwxr-xr-x 2 druf druf 4096 Feb 24 13:58 ./
drwxr-xr-x 4 druf druf 4096 Jan 27 08:45 ../
lrwxrwxrwx 1 druf druf   54 Feb 24 13:58 foundation -> ../../.config/yarn/global/node_modules/.bin/foundation*
➜  bin cd ~/.config/yarn/global/node_modules/foundation-cli/
➜  foundation-cli code .
➜  foundation-cli foundation kits install news
You don't appear to be in a ZURB stack project, so we can't automatically install building blocks
? Do you want to download as a zip file? Yes
downloaded news.zip
➜  foundation-cli ll
insgesamt 56K
drwxr-xr-x  2 druf druf 4,0K Feb 18 13:05 bin/
drwxr-xr-x  4 druf druf 4,0K Feb 18 13:05 lib/
-rw-r--r--  1 druf druf  35K Feb 25 14:28 news.zip
drwxr-xr-x 25 druf druf 4,0K Feb 24 13:58 node_modules/
-rw-r--r--  1 druf druf 1,3K Feb 25 14:28 package.json
-rw-r--r--  1 druf druf 2,4K Feb 25 14:28 readme.md