question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error installing package

See original GitHub issue

OS: 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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
sl-ulkencommented, Oct 30, 2018

@jayanthnd I got:

Warning: Functions are not valid as a React child. This may happen if you return a **Component** instead of **<Component />** from render. Or maybe you meant to call this function rather than return it.

Doing as suggested in warning message got it working for me. I.e. changing document={MyDocument} to document={<MyDocument />} in your case.

0reactions
diegomuracommented, Nov 6, 2018

Should be fixed on #364

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I fix this error installing packages in R - Stack Overflow
I'd first try lib = "C:/Program Files/R/R-3.2. 2/library" since it is in the search path.
Read more >
Problem Installing Packages in the RStudio IDE - Posit Support
If you are unable to install packages in the RStudio IDE, some common problems are outlined below: Are you able to install packages...
Read more >
Error in install.packages: unable to install packages
The function you're using is trying to use an 'annotation' package describing a microarray chip. The package is currently not installed, so it...
Read more >
error for installing packages - General - RStudio Community
I have a problem with installing packages. Plz help me TT > install.packages("ggplot2") also installing the dependencies 'backports', 'ellipsis', 'zeallot', ...
Read more >
General problem installing any R package - Microsoft Support
Problem. When trying to install any R package on your system, for example: install.packages("proto") you get an error like the following:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found