lazy-result.js ReferenceError: Promise is not defined

[code lang=”javascript”]
node_modules/postcss/lib/lazy-result.js:157
this.processing = new Promise(function (resolve, reject) {
^
ReferenceError: Promise is not defined
[/code]

When I install the FoundationPress, after I run gulp build I saw this message,
this is because the node version problem.

the have mention in this post
https://github.com/postcss/postcss-nested/issues/30

Solution

[code lang=”shell”]
vim node_modules/postcss/lib/lazy-result.js
[/code]
Put this to the first line of the file lazy-result.js
[code lang=”shell”]
require(‘es6-promise’).polyfill();
[/code]
Save.

Then install
[code lang=”shell”]
npm install es6-promise
[/code]

Then build again
[code lang=”shell”]

[[email protected]]# gulp build
[18:14:07] Starting ‘clean’…
[18:14:07] Starting ‘clean:javascript’…
[18:14:07] Starting ‘clean:css’…
[18:14:07] Finished ‘clean:javascript’ after 4.56 ms
[18:14:07] Finished ‘clean:css’ after 2.98 ms
[18:14:07] Finished ‘clean’ after 6.38 ms
[18:14:07] Starting ‘build’…
[18:14:07] Starting ‘copy’…
[18:14:07] Finished ‘copy’ after 103 ms
[18:14:07] Starting ‘sass’…
[18:14:08] Starting ‘javascript’…
[18:14:08] Starting ‘lint’…
[18:14:10] Finished ‘lint’ after 1.53 s
[18:14:10] Finished ‘sass’ after 2.58 s
[18:14:14] Finished ‘javascript’ after 6.12 s
[18:14:14] Finished ‘build’ after 6.78 s
[/code]

Success !

exit code of #128 fatal: unable to connect to github.com

I follow the Quickstart guide from FoundationPress and it display this error
[code lang=”bash”]
bower install && grunt build
bower foundation#* not-cached git://github.com/zurb/bower-foundation.git#*
bower foundation#* resolve git://github.com/zurb/bower-foundation.git#*
bower fontawesome#~4.3.0 not-cached git://github.com/FortAwesome/Font-Awesome.git#~4.3.0
bower fontawesome#~4.3.0 resolve git://github.com/FortAwesome/Font-Awesome.git#~4.3.0
bower fontawesome#~4.3.0 ECMDERR Failed to execute “git ls-remote –tags –heads git://github.com/FortAwesome/Font-Awesome.git”, exit code of #128 fatal: unable to connect to github.com: github.com[0: 192.30.252.131]: errno=Connection timed out
[/code]

I run this to solve this problem.

[code lang=”bash”]
git config –global url.”https://”.insteadOf git://
[/code]