How can I make local changes to node.js library?

demi

I installed some node.js package via npm (specifically, sqlite3). Now I want to add some logging to it's C++ code. I need package to be rebuilt. I tried 'npm edit', but it finishes with errors after 'wq':

npm ERR! weird error 1
npm ERR! not ok code 0

But I don't want use vi or another terminal editor for this. After modifications, I do npm rebuild sqlite3. But it does't rebuild anything! How can I modify packages I have locally?

[sqlite3]: Sweet: "node_sqlite3.node" is valid, node-sqlite3 is now installed!
damphat

sqlite3 module has changed normal build process, npm build will execute 'node build.js'. You can read node_modules/sqlite3/package.json to know how it is built:

  ...
  "scripts": {
    "install": "node build.js",
    "pretest": "node test/support/createdb.js",
    "test": "mocha -R spec --timeout 200000"
  },

If you change your C/C++ code, you can rebuild it using node-gyp

$ cd node_modules/sqlite3
$ node-gyp rebuild

Other option is removing the line "install": "node build.js" from package.json then call npm rebuild again

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I make node js synchronize?

From Dev

How can I assign global and local variables in node js

From Dev

How can I make changes to the boot options?

From Dev

How can I make changes to the boot options?

From Dev

How can I make xrandr changes persist?

From Dev

How can I make gradle overwrite the library in my local maven repo?

From Dev

How can I make the ER diagram of this library?

From Dev

How do I make a scrypt hash using Node.js's crypto library?

From Dev

How do I make a scrypt hash using Node.js's crypto library?

From Dev

How can i listen MySQL database changes in real time with Node.js or PHP

From Dev

How can I preserve local changes made to an NPM module?

From Dev

How can I git diff local changes to a different branch?

From Dev

GIT: how can I watch for local changes in a performant way?

From Dev

How can I make the Raphael js print method work on the local machine for French, German,... chars?

From Dev

Node.js/jade -- How can I pass mysql data as a local variable into inline javascript?

From Dev

Node.js - How can I use my local variable with EJS view

From Dev

How can I add a local library into my Leinigen project?

From Dev

How can I make DataGrid columns stretch as the control changes width?

From Dev

How can I make Git show changes to my .sql files?

From Dev

How can I make the changes done by a shell script permanent?

From Dev

How can I make changes to the network routing metric permanently

From Dev

How can I use PowerShell to make remote registry changes?

From Dev

How can I make gitweb ignore whitespace changes?

From Dev

How can I make changes to the network routing metric permanently

From Dev

how can I make many changes to css on hover state?

From Dev

How can I make changes to an xmldataprovided itemsource in c#?

From Dev

How can I make the changes of Gaia apply to device

From Dev

How can I make changes to the Windows Registry persistent?

From Dev

How can I make DataGrid columns stretch as the control changes width?

Related Related

  1. 1

    How can I make node js synchronize?

  2. 2

    How can I assign global and local variables in node js

  3. 3

    How can I make changes to the boot options?

  4. 4

    How can I make changes to the boot options?

  5. 5

    How can I make xrandr changes persist?

  6. 6

    How can I make gradle overwrite the library in my local maven repo?

  7. 7

    How can I make the ER diagram of this library?

  8. 8

    How do I make a scrypt hash using Node.js's crypto library?

  9. 9

    How do I make a scrypt hash using Node.js's crypto library?

  10. 10

    How can i listen MySQL database changes in real time with Node.js or PHP

  11. 11

    How can I preserve local changes made to an NPM module?

  12. 12

    How can I git diff local changes to a different branch?

  13. 13

    GIT: how can I watch for local changes in a performant way?

  14. 14

    How can I make the Raphael js print method work on the local machine for French, German,... chars?

  15. 15

    Node.js/jade -- How can I pass mysql data as a local variable into inline javascript?

  16. 16

    Node.js - How can I use my local variable with EJS view

  17. 17

    How can I add a local library into my Leinigen project?

  18. 18

    How can I make DataGrid columns stretch as the control changes width?

  19. 19

    How can I make Git show changes to my .sql files?

  20. 20

    How can I make the changes done by a shell script permanent?

  21. 21

    How can I make changes to the network routing metric permanently

  22. 22

    How can I use PowerShell to make remote registry changes?

  23. 23

    How can I make gitweb ignore whitespace changes?

  24. 24

    How can I make changes to the network routing metric permanently

  25. 25

    how can I make many changes to css on hover state?

  26. 26

    How can I make changes to an xmldataprovided itemsource in c#?

  27. 27

    How can I make the changes of Gaia apply to device

  28. 28

    How can I make changes to the Windows Registry persistent?

  29. 29

    How can I make DataGrid columns stretch as the control changes width?

HotTag

Archive