Menu icon Foundation
Upgrading foundation-cli from 2.1.0 → 2.2.1 fails

Hi there!

I decided to check out the new building blocks, so I apparently needed to upgrade my foundation-cli which somehow fails. Before and after I get shown I have 2.1.0 still:

$ foundation -v
Foundation CLI version 2.1.0

I tried the following commands, all giving no npm errors:

$ sudo npm update -g foundation-cli
$ sudo npm install -g [email protected]

Any idea what’ happening? (I run Ubuntu Studio 14.04.5 LTS on my dev machine.)

 

foundation-cliUpdatenpminstall

Hi there!

I decided to check out the new building blocks, so I apparently needed to upgrade my foundation-cli which somehow fails. Before and after I get shown I have 2.1.0 still:

$ foundation -v
Foundation CLI version 2.1.0

I tried the following commands, all giving no npm errors:

$ sudo npm update -g foundation-cli
$ sudo npm install -g [email protected]

Any idea what’ happening? (I run Ubuntu Studio 14.04.5 LTS on my dev machine.)

 

This post has been closed. No new replies can be added.

Matthias Hormann over 2 years ago

Even more odd:

$ sudo npm uninstall -g foundation-cli
unbuild [email protected]

$ sudo npm install -g [email protected]
/usr/bin/foundation -> /usr/lib/node_modules/foundation-cli/bin/foundation.js
[email protected] /usr/lib/node_modules/foundation-cli
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]4
├── [email protected]
└── [email protected]

$ foundation -v
Foundation CLI version 2.1.0

Can’t be just the version text, since foundation kits list and foundation blocks list also don’t work …

 

Matthias Hormann over 2 years ago

Well, it seemed to have installed the node module "foundation-cli" under both /usr/lib AND /usr/local/lib, so I kinda "hotfixed" it by deleting some files under /usr/local, see https://github.com/zurb/foundation-cli/issues/58.

More or less resolved for now, but I’d still like to know how it came about.