node_modules/postcss/lib/lazy-result.js:157 this.processing = new Promise(function (resolve, reject) { ^ ReferenceError: Promise is not defined
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
vim node_modules/postcss/lib/lazy-result.js
Put this to the first line of the file lazy-result.js
require('es6-promise').polyfill();
Save.
Then install
npm install es6-promise
Then build again
[root@juzhax]# 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
Success !