-
Notifications
You must be signed in to change notification settings - Fork 15
Description
After a fresh install:
git clone https://github.com/jim-at-jibba/timber-foundation-theme.git
npm install
I ran gulp
and it threw this error:
Jahr:underwood-tahiti jonathan$ gulp
/Volumes/Charlie/Users/jonathan/Sites/vvv/www/tahiti3/htdocs/wp-content/themes/underwood-tahiti/node_modules/node-sass/lib/index.js:22
throw new Error('`libsass` bindings not found. Try reinstalling `node-sass`?');
^
Error: `libsass` bindings not found. Try reinstalling `node-sass`?
at getBinding (/Volumes/Charlie/Users/jonathan/Sites/vvv/www/tahiti3/htdocs/wp-content/themes/underwood-tahiti/node_modules/node-sass/lib/index.js:22:11)
at Object.<anonymous> (/Volumes/Charlie/Users/jonathan/Sites/vvv/www/tahiti3/htdocs/wp-content/themes/underwood-tahiti/node_modules/node-sass/lib/index.js:188:23)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/Volumes/Charlie/Users/jonathan/Sites/vvv/www/tahiti3/htdocs/wp-content/themes/underwood-tahiti/node_modules/gulp-sass/index.js:3:17)
at Module._compile (module.js:413:34)
SOLUTION
Here's the solution that worked for me:
-
Update
package.json
to the latest version of gulp-sass"^3.1.0"
(it was previously"1.2.4"
) -
Run node v5.9.1. Running a later node version causes
npm install
to throw errors. Easy solution is to usenvm
and add a .nvmrc file to your project root. -
Open
bower.json
, copy contents ofdependencies
. Openpackage.json
, paste intodevDependencies
. Changefoundation
line to"foundation-sites": "github:zurb/bower-foundation"
. Changelightbox
line to"lightbox2": "~2.8.2"
.
I would love if somebody smarter than me created a newer Foundation starter theme for Wordpress. Pretty please?? 🙏
(Updated Sept 13 to include new steps I had to do when I used this theme again today.)