scotch icon indicating copy to clipboard operation
scotch copied to clipboard

Terminal error installing Scotch

Open Wordius opened this issue 12 years ago • 1 comments

Hope this is the correct place to post this, but I get an error every time I try to install Scotch. I wouldn’t call myself proficient in Terminal, but I think the following code shows where things break down:

File "/usr/local/share/npm/lib/node_modules/scotch-blog/node_modules/geddy/node_modules/model/node_modules/pg/.node-gyp/0.8.10/tools/gyp/pylib/gyp/input.py", line 714, in ExpandVariables (contents, p.returncode)) Exception: Call to 'pg_config --libdir' returned exit status 127. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:gypfailed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/Cellar/node/0.8.10/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:350:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:96:17) gyp ERR! stack at Process._handle.onexit (child_process.js:678:10) gyp ERR! System Darwin 13.0.0 gyp ERR! command "node" "/usr/local/Cellar/node/0.8.10/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/share/npm/lib/node_modules/scotch-blog/node_modules/geddy/node_modules/model/node_modules/pg gyp ERR! node -v v0.8.10 gyp ERR! node-gyp -v v0.6.11 gyp ERR! not ok

Wordius avatar Jan 02 '14 12:01 Wordius

Exit 127 can mean a command was not found. So pg_config isn't there.. Perhaps you don't have postgresql installed?

Regardless, this shouldn't be happening because Scotch uses mongo by default. I think it's because Scotch is using an older version of geddy/model that installs all the adapters regardless of what you are using.

An easy solution might be to change the version of geddy to the latest one. Can you give that a try?

ben-ng avatar Jan 02 '14 20:01 ben-ng