Reveal.js: Full setup with nodejs 12 fails

Created on 2 Sep 2019  路  4Comments  路  Source: hakimel/reveal.js

I'm on Debian Stretch. When installing the full setup, the build currently fails. Not sure if this is an issue with reveal.js.

Relevant log

For now, I have switched to nodejs 11 and everything works as expected.

Most helpful comment

I had a similar issue:

2 warnings and 5 errors generated.
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/edwin/Workspace/Edwin/Code/reveal.js/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/Cellar/node/12.10.0/bin/node" "/Users/edwin/Workspace/Edwin/Code/reveal.js/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/edwin/Workspace/Edwin/Code/reveal.js/node_modules/node-sass
gyp ERR! node -v v12.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/edwin/.npm/_logs/2019-09-10T02_04_38_001Z-debug.log

It looks like the problem is actually with the node-sass version. see here

Fix for Nodejs v12.10.0

  • update node-sass to version ^4.12.0 in your package.json
  • npm install
  • npm audit fix

Cheers

All 4 comments

can confirm i am getting this exact build error on node 12 as well.

I had a similar issue:

2 warnings and 5 errors generated.
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/edwin/Workspace/Edwin/Code/reveal.js/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/Cellar/node/12.10.0/bin/node" "/Users/edwin/Workspace/Edwin/Code/reveal.js/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/edwin/Workspace/Edwin/Code/reveal.js/node_modules/node-sass
gyp ERR! node -v v12.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/edwin/.npm/_logs/2019-09-10T02_04_38_001Z-debug.log

It looks like the problem is actually with the node-sass version. see here

Fix for Nodejs v12.10.0

  • update node-sass to version ^4.12.0 in your package.json
  • npm install
  • npm audit fix

Cheers

This has been fixed in master now by upgrading to node-sass 4.13.0. Thanks for tracking down the issue, @edgranau!

downgraded node@10

Was this page helpful?
0 / 5 - 0 ratings

Related issues

patarapolw picture patarapolw  路  5Comments

gre picture gre  路  5Comments

justmytwospence picture justmytwospence  路  4Comments

AnnotatedJS picture AnnotatedJS  路  5Comments

togakangaroo picture togakangaroo  路  4Comments