When I install mongoskin using npm, it tells me:
To install with C++ bson parser do <npm install mongodb --mongodb:native>
This is fine when doing installing manually.
Supposed I want to add mongoskin as a dependency to my package.json
file - how do I then specify this option? Of course I can include something such as
"dependencies": {
"mongoskin": "*"
}
but where do I provide the --mongodb:native
parameter?
As SonOfNun wrote this is a duplicate of Best workflow using node.js npm and git which answers the question perfectly.