Error installing package
See original GitHub issueOS: Mac OS High Sierra
React-pdf version: 1.0.0-alpha.18
Description: Unable to yarn/npm install @react-pdf/renderer
**How to replicate issue including code snippet (if applies): Tried running yarn install @react-pdf/renderer
and get the following error:
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/nbind/sources/yoga/Utils.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 17.6.0
gyp ERR! command “/usr/local/Cellar/node/10.11.0/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “configure” “build”
gyp ERR! cwd /Users/node_modules/yoga-layout
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yoga-layout@1.9.3 build:node: npm run copy-sources && autogypi && node-gyp configure build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yoga-layout@1.9.3 build:node script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
**
You can make use of react-pdf REPL to share the snippet
I’ve seen a couple of other threads with similar issues, just wondering if there’s a workaround for it.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:12 (4 by maintainers)
@jayanthnd I got:
Doing as suggested in warning message got it working for me. I.e. changing
document={MyDocument}
todocument={<MyDocument />}
in your case.Should be fixed on #364