jorgeazevedo / node-sqlserver-unofficial

An unofficial binary distribution of Microsoft's node-sqlserver driver, a node.js module to connect to MS/Azure SQL databases.
MIT License
39 stars 11 forks source link

`require` statement in test/server.js is breaking Azure deployment #4

Open jorgeazevedo opened 10 years ago

jorgeazevedo commented 10 years ago

Of course it is. Look

var sql = require('..');

it should be var sql = require('node-sqlserver-unofficial').

Except that it doesn't work locally without an npm install. Hm.

jorgeazevedo commented 10 years ago

There's a way to have require('node-sqlserver-unofficial') work in all situations, which is to have the repository cloned inside a dir called node_modules.