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

Add sqlite3 installation to setup documentation #17

Open
mike-north opened this issue Aug 18, 2017 · 5 comments
Open

Add sqlite3 installation to setup documentation #17

mike-north opened this issue Aug 18, 2017 · 5 comments

Comments

@mike-north
Copy link
Member

No description provided.

@mike-north mike-north added docs and removed docs labels Aug 18, 2017
@sharadJay
Copy link

Hi Mark, I have been struggling to get this codebase setup and seeing errors in setting up sqllite. Was there a separate setup required to get it installed ? Here is the stacktrace of error that I have been observing

Error: Failed to execute '/Users/shjain/.nvm/versions/node/v7.1.0/bin/node /Users/shjain/Development/pwa-fundamentals/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/shjain/Development/pwa-fundamentals/node_modules/sqlite3/lib/binding/node-v51-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/Users/shjain/Development/pwa-fundamentals/node_modules/sqlite3/lib/binding/node-v51-darwin-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/shjain/Development/pwa-fundamentals/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:885:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command "/Users/shjain/.nvm/versions/node/v7.1.0/bin/node" "/Users/shjain/Development/pwa-fundamentals/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"

@mike-north
Copy link
Member Author

I would suggest using the current stable version of node (9.2 or 9.5 now?) and seeing if that helps

@sharadJay
Copy link

No, I did not get any success with 8.9.0 or 9.2.0. Looks like there are a lot of folks who are having issues with sqlite 3 installation.

@mike-north
Copy link
Member Author

@sharadJay - Please do the following

  1. Uninstall and reinstall the native sqlite library
brew uninstall --force --ignore-dependencies sqlite3 #remove the compiled native library
brew doctor # and fix ALL issues it points out
brew install sqlite3 # reinstall it
  1. Clear your nvm cache
nvm cache clear
  1. Remove your node_modules folder for the project, and reinstall all node dependencies
rm -rf node_modules
npm i

@sharadJay
Copy link

I did above but had the same problem. I dug further and added sqlite3 to my path which resolved it.
Thanks @mike-north for your help 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants