dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 379 forks source link

Not working on windows 7 #737

Closed shakti03 closed 7 years ago

shakti03 commented 7 years ago

getting following error when running on windows 7

      throw er; // Unhandled 'error' event
      ^
 ORMError: Connection lost - driver does not support reconnection
    at ORM.<anonymous> (C:\Users\dell\Desktop\serialport1\node_modules\orm\lib\ORM.js
:172:31)
    at emitOne (events.js:77:13)
    at Database.emit (events.js:169:7)```
zhengxs2018 commented 7 years ago

window 10 +1

dxg commented 7 years ago

Which driver are you using? Package version & name.

zhengxs2018 commented 7 years ago
dxg commented 7 years ago

Which version of sqlite package are you using? Or does the problem affect all versions?

Tonyhark commented 7 years ago

When I “npm run dev” in https://github.com/iaincollins/nextjs-starter

The error as below

    throw er; // Unhandled 'error' event
    ^
   ORMError: Connection lost - driver does not support reconnection
   at ORM.<anonymous> (C:\Users\dell\Desktop\serialport1\node_modules\orm\lib\ORM.js
     :172:31)
     at emitOne (events.js:77:13)
    at Database.emit (events.js:169:7)```

Not working on windows 10, npm 3.10.10 node 6.10.0 sqlite 3.1.8 orm 3.2.3

But it is OK on macOS v10.12.3

Tonyhark commented 7 years ago

My problem has been resolved. Windows has not "/tmp" directory, so create connection failed. I think it can help most people who encounter the issue. Perhaps, this issue can be closed.