realm-js: Installing Realm Node.JS SDK professional edition - Error: Cannot find module '../compiled/linux-x64/node-v57/realm-node.node'
Goals
Trying to start a trial of the Realm Mobile Platform Professional Edition on my Linux server running CentOS 6.
Expected Results
I followed the instructions precisely but once I try to run my code by doing node index.js I’m getting this error.
Actual Results
Got this error:
module.js:487 throw err; ^
Error: Cannot find module ‘…/compiled/linux-x64/node-v57/realm-node.node’ at Function.Module._resolveFilename (module.js:485:15) at Function.Module._load (module.js:437:25) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object.<anonymous> (/home/mmckenna/TwilioSMSTest/node_modules/realm/lib/index.js:22:15) at Module._compile (module.js:569:30) at Object.Module._extensions…js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3)
Steps to Reproduce
Open a synchronized realm in NodeJS
Code Sample
let appointmentRealm = new Realm({ sync: { user: adminUser, url: "realm://***.com:9080/appointments" }, schema: [AppointmentSchema] });
Version of Realm and Tooling
- Realm JS SDK Version: Not sure how to check…it’s the one emailed to me, the
realm-professional.tgz - Node or React Native: Node
- Client OS & Version: CentOS6
- Node Version: 8.2.1
- NPM Version: 5.3.0
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (2 by maintainers)
To anyone reading this - I had to receive an updated feature token and all started working.
Hey @michael-mckenna, could you please try to downgrade your Node.js version to 6.x or 7.x? I think the tarball you were emailed might have been built before we added support for Node.js 8.