Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win & sqlite : Cannot find module './binding\Release\node-v11-win32-x64\node_sqlite3.node' #1865

Closed
AlbanMinassian opened this issue Jan 7, 2014 · 9 comments

Comments

Projects
None yet
5 participants
@AlbanMinassian
Copy link

commented Jan 7, 2014

Hello

I run ghost under linux witout problem. If i deploy on Windows , i have error ''ERROR: Cannot find module './binding\Release\node-v11-win32-x64\node_sqlite3.node'"

Win

  • if i delete node_modules, and run npm install : no problem
  • npm start display : 'ERROR: Cannot find module './binding\Release\node-v11-win32-x64\node_sqlite3.node'"
C:\ghost>node --version
v0.10.24

C:\ghoshot>rm -rf node_modules <=== like fresh install

C:\ghoshot>npm install
npm http GET http://registry.npmjs.org/shred
npm http GET http://registry.npmjs.org/nedb
npm http GET http://registry.npmjs.org/express
npm http GET http://registry.npmjs.org/underscore
npm http GET http://registry.npmjs.org/commander
npm http GET http://registry.npmjs.org/ejs
npm http GET http://registry.npmjs.org/express-validator
npm http GET http://registry.npmjs.org/validator
npm http 200 http://registry.npmjs.org/underscore
npm http 200 http://registry.npmjs.org/commander
npm http 200 http://registry.npmjs.org/ejs
npm http 200 http://registry.npmjs.org/express-validator
npm http 200 http://registry.npmjs.org/shred
npm http 200 http://registry.npmjs.org/express
npm http 200 http://registry.npmjs.org/validator
npm http 200 http://registry.npmjs.org/nedb
npm http GET http://registry.npmjs.org/sprintf/0.1.1
npm http GET http://registry.npmjs.org/cookiejar
npm http GET http://registry.npmjs.org/ax/0.1.8
npm http GET http://registry.npmjs.org/iconv-lite
npm http 200 http://registry.npmjs.org/cookiejar
npm http 200 http://registry.npmjs.org/sprintf/0.1.1
npm http GET http://registry.npmjs.org/sprintf/-/sprintf-0.1.1.tgz
npm http 200 http://registry.npmjs.org/ax/0.1.8
npm http GET http://registry.npmjs.org/ax/-/ax-0.1.8.tgz
npm http 200 http://registry.npmjs.org/iconv-lite
npm http 200 http://registry.npmjs.org/sprintf/-/sprintf-0.1.1.tgz
npm http 200 http://registry.npmjs.org/ax/-/ax-0.1.8.tgz
npm http GET http://registry.npmjs.org/mkdirp/0.3.5
npm http GET http://registry.npmjs.org/fresh/0.2.0
npm http GET http://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET http://registry.npmjs.org/cookie/0.1.0
npm http GET http://registry.npmjs.org/send/0.1.4
npm http GET http://registry.npmjs.org/methods/0.1.0
npm http GET http://registry.npmjs.org/cookie-signature/1.0.1
npm http GET http://registry.npmjs.org/merge-descriptors/0.0.1
npm http GET http://registry.npmjs.org/debug
npm http GET http://registry.npmjs.org/range-parser/0.0.4
npm http GET http://registry.npmjs.org/commander/1.3.2
npm http GET http://registry.npmjs.org/connect/2.12.0
npm http 200 http://registry.npmjs.org/fresh/0.2.0
npm http GET http://registry.npmjs.org/fresh/-/fresh-0.2.0.tgz
npm http 200 http://registry.npmjs.org/send/0.1.4
npm http 200 http://registry.npmjs.org/cookie/0.1.0
npm http 200 http://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET http://registry.npmjs.org/send/-/send-0.1.4.tgz
npm http 200 http://registry.npmjs.org/mkdirp/0.3.5
npm http GET http://registry.npmjs.org/cookie/-/cookie-0.1.0.tgz
npm http GET http://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm http GET http://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http 200 http://registry.npmjs.org/methods/0.1.0
npm http GET http://registry.npmjs.org/methods/-/methods-0.1.0.tgz
npm http 200 http://registry.npmjs.org/cookie-signature/1.0.1
npm http GET http://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.1.tgz
npm http 200 http://registry.npmjs.org/merge-descriptors/0.0.1
npm http GET http://registry.npmjs.org/merge-descriptors/-/merge-descriptors-0.0.1.tgz
npm http 200 http://registry.npmjs.org/fresh/-/fresh-0.2.0.tgz
npm http 200 http://registry.npmjs.org/connect/2.12.0
npm http GET http://registry.npmjs.org/connect/-/connect-2.12.0.tgz
npm http 200 http://registry.npmjs.org/range-parser/0.0.4
npm http GET http://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz
npm http 200 http://registry.npmjs.org/commander/1.3.2
npm http GET http://registry.npmjs.org/commander/-/commander-1.3.2.tgz
npm http 200 http://registry.npmjs.org/send/-/send-0.1.4.tgz
npm http 200 http://registry.npmjs.org/cookie/-/cookie-0.1.0.tgz
npm http 200 http://registry.npmjs.org/debug
npm http 200 http://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm http 200 http://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http 200 http://registry.npmjs.org/methods/-/methods-0.1.0.tgz
npm http 200 http://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.1.tgz
npm http 200 http://registry.npmjs.org/merge-descriptors/-/merge-descriptors-0.0.1.tgz
npm http 200 http://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz
npm http 200 http://registry.npmjs.org/commander/-/commander-1.3.2.tgz
npm http 200 http://registry.npmjs.org/connect/-/connect-2.12.0.tgz
npm http GET http://registry.npmjs.org/keypress
npm http 200 http://registry.npmjs.org/keypress
npm http GET http://registry.npmjs.org/mime
npm http 200 http://registry.npmjs.org/mime
npm http GET http://registry.npmjs.org/underscore
npm http GET http://registry.npmjs.org/async/0.2.9
npm http GET http://registry.npmjs.org/mkdirp
npm http GET http://registry.npmjs.org/binary-search-tree/0.2.3
npm http 200 http://registry.npmjs.org/underscore
npm http 200 http://registry.npmjs.org/mkdirp
npm http 200 http://registry.npmjs.org/async/0.2.9
npm http GET http://registry.npmjs.org/async/-/async-0.2.9.tgz
npm http 200 http://registry.npmjs.org/binary-search-tree/0.2.3
npm http GET http://registry.npmjs.org/binary-search-tree/-/binary-search-tree-0.2.3.tgz
npm http 200 http://registry.npmjs.org/async/-/async-0.2.9.tgz
npm http 200 http://registry.npmjs.org/binary-search-tree/-/binary-search-tree-0.2.3.tgz
npm http GET http://registry.npmjs.org/pause/0.0.1
npm http GET http://registry.npmjs.org/uid2/0.0.3
npm http GET http://registry.npmjs.org/qs/0.6.6
npm http GET http://registry.npmjs.org/batch/0.5.0
npm http GET http://registry.npmjs.org/multiparty/2.2.0
npm http GET http://registry.npmjs.org/raw-body/1.1.2
npm http GET http://registry.npmjs.org/negotiator/0.3.0
npm http GET http://registry.npmjs.org/bytes/0.2.1
npm http 200 http://registry.npmjs.org/uid2/0.0.3
npm http GET http://registry.npmjs.org/uid2/-/uid2-0.0.3.tgz
npm http 200 http://registry.npmjs.org/qs/0.6.6
npm http 200 http://registry.npmjs.org/pause/0.0.1
npm http GET http://registry.npmjs.org/qs/-/qs-0.6.6.tgz
npm http GET http://registry.npmjs.org/pause/-/pause-0.0.1.tgz
npm http 200 http://registry.npmjs.org/multiparty/2.2.0
npm http GET http://registry.npmjs.org/multiparty/-/multiparty-2.2.0.tgz
npm http 200 http://registry.npmjs.org/uid2/-/uid2-0.0.3.tgz
npm http 200 http://registry.npmjs.org/raw-body/1.1.2
npm http GET http://registry.npmjs.org/raw-body/-/raw-body-1.1.2.tgz
npm http 200 http://registry.npmjs.org/bytes/0.2.1
npm http GET http://registry.npmjs.org/bytes/-/bytes-0.2.1.tgz
npm http 200 http://registry.npmjs.org/negotiator/0.3.0
npm http GET http://registry.npmjs.org/negotiator/-/negotiator-0.3.0.tgz
npm http 200 http://registry.npmjs.org/batch/0.5.0
npm http GET http://registry.npmjs.org/batch/-/batch-0.5.0.tgz
npm http 200 http://registry.npmjs.org/pause/-/pause-0.0.1.tgz
npm http 200 http://registry.npmjs.org/qs/-/qs-0.6.6.tgz
npm http 200 http://registry.npmjs.org/raw-body/-/raw-body-1.1.2.tgz
npm http 200 http://registry.npmjs.org/bytes/-/bytes-0.2.1.tgz
npm http 200 http://registry.npmjs.org/batch/-/batch-0.5.0.tgz
npm http 200 http://registry.npmjs.org/negotiator/-/negotiator-0.3.0.tgz
npm http 200 http://registry.npmjs.org/multiparty/-/multiparty-2.2.0.tgz
npm http GET http://registry.npmjs.org/stream-counter
npm http GET http://registry.npmjs.org/readable-stream
npm http 200 http://registry.npmjs.org/stream-counter
npm http 200 http://registry.npmjs.org/readable-stream
npm http GET http://registry.npmjs.org/debuglog/0.0.2
npm http GET http://registry.npmjs.org/core-util-is
npm http 200 http://registry.npmjs.org/core-util-is
npm http 200 http://registry.npmjs.org/debuglog/0.0.2
npm http GET http://registry.npmjs.org/debuglog/-/debuglog-0.0.2.tgz
npm http 200 http://registry.npmjs.org/debuglog/-/debuglog-0.0.2.tgz
commander@2.1.0 node_modules\commander

underscore@1.5.2 node_modules\underscore

express-validator@1.0.1 node_modules\express-validator

validator@2.0.0 node_modules\validator

shred@0.8.9 node_modules\shred
├── sprintf@0.1.1
├── cookiejar@1.3.0
├── ax@0.1.8
└── iconv-lite@0.2.11

ejs@0.8.5 node_modules\ejs

nedb@0.9.3 node_modules\nedb
├── async@0.2.9
├── underscore@1.4.4
├── binary-search-tree@0.2.3
└── mkdirp@0.3.5

express@3.4.7 node_modules\express
├── methods@0.1.0
├── merge-descriptors@0.0.1
├── debug@0.7.4
├── buffer-crc32@0.2.1
├── cookie-signature@1.0.1
├── range-parser@0.0.4
├── fresh@0.2.0
├── cookie@0.1.0
├── commander@1.3.2 (keypress@0.1.0)
├── send@0.1.4 (mime@1.2.11)
├── mkdirp@0.3.5
└── connect@2.12.0 (uid2@0.0.3, qs@0.6.6, raw-body@1.1.2, batch@0.5.0, pause@0.0.1, bytes@0.2.1, negotiator@0.3.0, multiparty@2.2.0)


C:\ghost>npm start

> ghost@0.3.3 start C:\ghost
> node index


ERROR: Cannot find module './binding\Release\node-v11-win32-x64\node_sqlite3.node'

Error: Cannot find module './binding\Release\node-v11-win32-x64\node_sqlite3.node'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\ghost\node_modules\sqlite3\lib\sqlite3.js:7:15)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

Ami44

@ErisDS

This comment has been minimized.

Copy link
Member

commented Jan 7, 2014

@ami44 As far as I can tell from the information provided, this is a problem with your install or environment setup, and is not a bug in Ghost. You may find the forum is a better place to get support.

When posting on the forum, be sure to provide more information about how you installed Ghost, and your Windows environment so that people can help you find the problem.

@ErisDS ErisDS closed this Jan 7, 2014

@AlbanMinassian

This comment has been minimized.

Copy link
Author

commented Jan 7, 2014

Solution if you want install Ghost on Windows behind a proxy, ghost display nothing, all is ok (see my console above) ... except when you run npm start.

Hidden bug

npm install sqlite3 fail to download http://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.1.a-node-v11-win32-x64.tar.gz with a proxy and try to build sqlite and fail.

Fast solution

download http://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.1.a-node-v11-win32-x64.tar.gz manually and unzip into C:\ghost\node_modules\sqlite3\lib\binding\Release

see mapbox/node-sqlite3#240 (comment)

Ami44

@springmeyer

This comment has been minimized.

Copy link
Contributor

commented Jan 13, 2014

@ami44 - sorry about the proxy problem. I'm the maintainer of node-sqlite3 and am about to fix this with a new tag. Would you be able to help test? See mapbox/node-sqlite3#219 (comment) for testing details for the new approach.

@ghost

This comment has been minimized.

Copy link

commented Jan 31, 2014

I just encountered this as well trying to update to 0.4.1. Should this issue still be present?

@AlbanMinassian

This comment has been minimized.

Copy link
Author

commented Jan 31, 2014

issue still present, see my console : https://gist.github.com/ami44/8733298

@jgable

This comment has been minimized.

Copy link
Member

commented Jan 31, 2014

@ami44

Can't find "msbuild.exe" Do you have Microsoft Visual Studio C++ 2008+ installed?

Might be useful?

@AlbanMinassian

This comment has been minimized.

Copy link
Author

commented Jan 31, 2014

No, i can't install msbuild (restriction right) !
maybe you must update your package.json switch this issuse : mapbox/node-sqlite3#219

@ErisDS

This comment has been minimized.

Copy link
Member

commented Feb 1, 2014

There is an open PR to upgrade #1941 - the changes require a bit more than a patch version of Ghost though, so in the meantime you may want to make this change yourself.

@halfdan

This comment has been minimized.

Copy link
Member

commented Feb 2, 2014

@ami44 Also note that Ghost only supports node v0.10 (for now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.