Menu icon Foundation
npm run build error: gulp --production

Hey there,

I am trying to inline my email template but just getting the following error message:

npm ERR! Darwin 15.6.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"

npm ERR! node v6.2.2

npm ERR! npm  v3.10.5

npm ERR! code ELIFECYCLE

npm ERR! [email protected] build: `gulp --production`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the [email protected] build script 'gulp --production'.

npm ERR! Make sure you have the latest version of node.js and npm installed.

npm ERR! If you do, this is most likely a problem with the foundation-emails-template package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR!     gulp --production

npm ERR! You can get information on how to open an issue for this project with:

npm ERR!     npm bugs foundation-emails-template

npm ERR! Or if that isn't available, you can get their info via:

npm ERR!     npm owner ls foundation-emails-template

npm ERR! There is likely additional logging output above.

 

 

Have already updated node and npm and also reinstalled foundation emails cli twice.

 

Thanks for your help,

Torsten

foundation emailsnpm run buildnodegulpfoundation cli

Hey there,

I am trying to inline my email template but just getting the following error message:

npm ERR! Darwin 15.6.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"

npm ERR! node v6.2.2

npm ERR! npm  v3.10.5

npm ERR! code ELIFECYCLE

npm ERR! [email protected] build: `gulp --production`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the [email protected] build script 'gulp --production'.

npm ERR! Make sure you have the latest version of node.js and npm installed.

npm ERR! If you do, this is most likely a problem with the foundation-emails-template package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR!     gulp --production

npm ERR! You can get information on how to open an issue for this project with:

npm ERR!     npm bugs foundation-emails-template

npm ERR! Or if that isn't available, you can get their info via:

npm ERR!     npm owner ls foundation-emails-template

npm ERR! There is likely additional logging output above.

 

 

Have already updated node and npm and also reinstalled foundation emails cli twice.

 

Thanks for your help,

Torsten

Corey Schaaf over 3 years ago

Have you eve been able to inline or is this your first time using it and haven't been able to inline at all? 

Torsten Voll over 3 years ago

Hey Corey,

 

Thanks for your answer.

Actually I got it to work with "foundation build" no problem however it does not do the "hide-for-large" media query for some reason. Instead it seems to do "hide-for-mobile".

I think it's a bug init?

Kind regards,

Torsten

 

Corey Schaaf over 3 years ago

.hide-for-large and .show-for-large are the correct class names. However these classes rely on media queries to work in tandem with each other.  Gmail and yahoo do not support media queries so if you're trying / testing either of them, that may be why. 

There is also currently a bug with .hide-for-large, so even if you use it locally and not inside gmail it won't work. Zurb is aware of that issue. But regardless of it being fixed - it will will not work in gmail / yahoo as again ... they do not support media queries.