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.

Yarn doesn't run node-pre-gyp on install (Was: Jest with Node 7+)

See original GitHub issue

I would like to run tests under NodeJS v7.2. As of v7, the node ABI version was switched from 48 to 51. This causes problems with realm.

Cannot find module '/Users/colinramsay/Projects/clients/clade/clade-app/node_modules/realm/compiled/node-v51_darwin_x64/realm.node' from 'index.js'

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:151:17)
      at Object.<anonymous> (node_modules/realm/lib/index.js:43:24)
      at Object.<anonymous> (src/app/persistence.js:1:158)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
colinramsaycommented, Jan 3, 2017

We’re now using a different approach, forcing the install of the binaries.

yarn install
cd node_modules/realm; yarn run install
1reaction
colinramsaycommented, Dec 31, 2016

I can’t remember what we were using at the time but we’re currently on:

  • Node 4.5
  • Jest 17.0.3
  • Realm 0.15.1-rc
  • Yarn 0.16.1
Read more comments on GitHub >

github_iconTop Results From Across the Web

node_modules/bcrypt: Command failed. node-pre-gyp
So I run chmod -R ug+rwx XXXX where XXXX is my project drive. But the yarn install doesn't work. I keep searching. Edit...
Read more >
Getting Started - Jest
Running from command line ... You can run Jest directly from the CLI (if it's globally available in your PATH , e.g. by...
Read more >
canvas | Yarn - Package Manager
node -canvas is a Cairo-backed Canvas implementation for Node.js. Installation. $ npm install canvas. By default, binaries for macOS, Linux and Windows will...
Read more >
Node.js v19.3.0 Documentation
Running npm install -g yarn doesn't work. Crypto. Determining if crypto support is unavailable; Class: Certificate. Static method: Certificate.
Read more >
the react-scripts package provided by create react app ...
Run npm install or yarn, depending on the package manager you use. ... 7. Try running npm ls jest in your project folder....
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