Skip to content

Commit 05a2d11

Browse files
committed
taking note from danes comment
1 parent 3a63e95 commit 05a2d11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Check out [node-pre-gyp's docs](https://github.com/mapbox/node-pre-gyp#s3-hostin
9494

9595
### Versioning
9696

97-
When developing addons, versioning is extremely important. The NPM ecosystem allows modules to install different versions of modules depending on their dependencies, which works fine for javascript, but not great for binaries. **It's very important to ensure a project has only ONE version of a node addon** to prevent mismatching binaries from running simultaneously.
97+
When developing addons, versioning is extremely important. The NPM ecosystem allows modules to install different versions of modules depending on their dependencies, which works fine for javascript, but not great for binaries. **It's very important to ensure a project has only ONE version of a node addon** to prevent mismatching binaries from running simultaneously. This can be accomplished by making an addon a dependency of the main application, which lets NPM dedupe correctly.
9898

9999
Here's an example project that shows the potential disasters of running two binaries, [node-cpp-snafu](https://github.com/mapbox/versioning-node-snafu).
100100

0 commit comments

Comments
 (0)