Issue Setting Up Sage

Hi,

When running yarn && yarn build to setup roots, I keep getting the below error on MacOS, same when running sudo yarn && yarn build. Any ideas how I can proceed with this please?

1 error generated.
make: *** [Release/obj.target/binding/src/create_string.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/darryl/dev/ss-wordpress/wp-content/themes/ss-theme/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:209:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/bin/node" "/Users/darryl/dev/ss-wordpress/wp-content/themes/ss-theme/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/darryl/dev/ss-wordpress/wp-content/themes/ss-theme/node_modules/node-sass
gyp ERR! node -v v12.9.1

I think it’s because your version of Node is too new. Not sure exactly what version you require though, hopefully someone can confirm.

I am on an older version (v8.11.4) and working fine.

1 Like

Thanks I’ll try downgrading

We recommend using NVM to manage Node versions. This will make it much easier to switch back and forth for different projects that require different versions.

This topic was automatically closed after 42 days. New replies are no longer allowed.