Open kaliseo opened 8 years ago
Are you mixing major node versions (e.g. v0.10, v0.12, v4.x, v5.x, v6.x, etc.) or trying to use the same compiled addon across different platforms (e.g. Linux and OS X)?
You're totaly right ! I'm using different versions of Node between dev & production platform. Do you think it's the reason ?
Hum.. Since i upgraded NPM in dev machine, got this error : Error: Cannot find module '../build/Debug/sqlclient'
All time. Tried npm rebuild, remove & reinstall module, nothing works
You have to make sure major node versions match, not just npm versions. If both dev and production are running within the same release branch (e.g. node v4.0.0 and v4.4.5) there should not be a problem.
Bumping this issue,
Dev and production running same version of node. Tried all of the above. The build/Debug directory never shows up... It's not there, no wonder it can't be found.
@RachelScodes How are you installing this addon?
"Tried all of the above", meaning:
1 - checked for matching node versions, dev was running node v.5.12.0, made sure local used the same version
2 -npm install mariasql
3 - used sample code to instantiate a client
4 - got the above error
5 - looked in the directory and noticed the build/Debug directory didn't exist.
6 - upgraded dev and local to node v.6.2.2; repeated steps 2-5
7 - looked on the internet and found lots of people with this same bug
8 - tried running node-gyp rebuild
9 - nope. Debug directory still isn't there
10 - deleted everything, cloned directory, ran node-gyp rebuild
11 - same error. directory isn't there.
@RachelScodes Can you post the console output you get when you npm --loglevel=silly install mariasql
or node-gyp rebuild
(latter preferred)?
I have a similar problem using node 0.10:
@danialm mariasql
v0.1.x is old and some versions had some issues, you will need to upgrade.
what is the latest version?
@danialm v0.2.6
that worked! thank you so much
Just for the record, I was able to get the mariasql 0.1.x to work with node 0.10. All I did was to brew uninstall node@0.10 and then clean the house and reinstall node 0.10 from node.js website
Hi guys !
Got a problem, you may help me.
I'm deploying my app using git in production. Since i used mariasql client, got the error : { [Error: Cannot find module '../build/Debug/sqlclient'] code: 'MODULE_NOT_FOUND' }
It's due to mariasql client wich is not builded when retrieving package via bitbucket.
I tried strongloop with slc build to send builded package to bitbucket, but does not change anything. I have to reinstall mariasql module when deploying app in production.
Do you have a solution to sens builded module to bitbucket & install it in production pre-builded ?
Thanks a lot for your help !
Best regards,
Thierry