-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Implement 'copy' command #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not sure if this related, but... here is a general question about node-gyp (and maybe bindings) made specific in the context of node-sqlite3. Now that I have node-sqlite3 building with node-gyp, I would like to be able to relocate it (directly into production and not via uploading an npm package) so that require('sqlite3') just works. I gather this is what 'node-gyp copy' will do when implemented? I'm not sure why the node requires logic confuses me so much. I've only read the nice docs at nodejs.org a dozen times. I seem to get one thing working and then have trouble with the next. :) I've been trying to coerce node-bindings into working for any node_modules directory, but I have not been able to get 'bindings' to discover the root, perhaps because I do not have a package.json that it likes and perhaps because I only get about ten minutes to think about this between meetings. The error is something like Error: Could not find module root given file: C:\Documents and Settings\cm\node_modules\sqlite3\sqlite3.js where I have put the node_sqlite3.node file right there in the node_modules\sqlite3 folder alongside sqlite3.js. In the short term, I just need to know how to hack the relocation the the module /lib and *.node artifacts created by node-gyp. I hope this makes sense in a sleep-deprived way. |
@cmundi The error you are seeing is from
Does that make sense? The |
Ah! I was just about to go looking for how to turn on verbose logging for Yes, I am very impressed with how node-bindings found the node_sqlite3.node I am very grateful that you and a few other capable devs recognize the On Mon, Feb 13, 2012 at 8:42 PM, Nathan Rajlich <
|
Got it! I hacked a semi-legit package.json file, found the path which looked nicest (the platform-specific 'compiled' path of course), dropped in node_sqlite3.node and... just like you promised... it just worked. I did all of this in a "deployment" node_modules directory completely separate from where I built node-sqlite3. Thank You! |
Closing. I don't think we want/need a |
chore: cleanup unneeded chromium files
No description provided.
The text was updated successfully, but these errors were encountered: