-
Notifications
You must be signed in to change notification settings - Fork 974
Javascript error after build #209
Comments
Did you |
Experienced the same issue on Linux with node 4.x. After switching to node 5.4.1, removing |
@tomru almost definitely the issue, thanks. Likely people npm installed with 0.12 or similar and then upgraded. We use 3 native modules currently for fast tracking protection, adblock and https everywhere (which uses sqlite). Those need to be built with 5.4.1. A faster solution may be to just run the postinstall which re-builds these native modules:
|
@bobpoekert can you confirm if you're on Node 5.5? If so, please make sure you clear out your node_modules directory first and then npm install. |
Hit this on El Capitan with old node 4. Upgrading to confirm. If this is an issue, can we mention node version constraint / requirement in readme, and/or assert during build? |
Yep that's merged now in the README. |
This fixed it for me, but I also had to clear out the npm cache manually, and set my new npm to be first in my PATH. Evoking the new npm via its fq path was not enough. |
OS X 10.11.1
Performed clone from repo, installed via NPM (no errors, I think), created .app and then built the .dmg - but no dice.
Do I just repeat the install/build process?
Uncaught Exception: Error: Cannot find module '/Applications/Brave.app/Contents/Resources/app/node_modules/sqlite3/lib/binding/node-v47-darwin-x64/node_sqlite3.node' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:289:25) at Module.require (module.js:366:17) at require (module.js:385:17) at Object.<anonymous> (/Applications/Brave.app/Contents/Resources/app/node_modules/sqlite3/lib/sqlite3.js:4:15) at Module._compile (module.js:425:26) at Object.Module._extensions..js (module.js:432:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:313:12) at Module.require (module.js:366:17)
The text was updated successfully, but these errors were encountered: