Cannot find module '../build/Release/bson'
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.
TypeError: Cannot read property 'indexOf' of undefined
at exports.parse (C:\App\nodejs\Scripts\fulltext_search\node_modules\mongodb
\lib\mongodb\connection\url_parser.js:14:9)
at Function.MongoClient.connect (C:\App\nodejs\Scripts\fulltext_search\node_
modules\mongodb\lib\mongodb\mongo_client.js:164:16)
at Object.
Have you set the MONGOHQ_URL environment variable?
The example is not stopping because of the bson error but because it has no URL to connect to.
The article https://www.compose.com/articles/full-text-search-with-mongodb-and-node-js/ covers the (now four years old) example.
perfect! thx. Sorry new to mongo and nodejs. BTW this is a great "tutorial" I was able to more or less copy this to a few webpages I'm writing to incorporate full DB searches. Thx again.