Created
July 12, 2012 19:11
-
-
Save hunterloftis/3100224 to your computer and use it in GitHub Desktop.
"npm install" fails when done via a git post-receive hook, succeeds when the same user runs it via ssh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```shell | |
remote: npm http 304 https://registry.npmjs.org/uglify-js/1.2.5 | |
remote: npm http 304 https://registry.npmjs.org/xmlhttprequest/1.2.2 | |
remote: npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1 | |
remote: npm http 304 https://registry.npmjs.org/ws | |
remote: npm ERR! git checkout master fatal: Not a git repository: '.' | |
remote: | |
remote: npm ERR! Error: `git "checkout" "master"` failed with 128 | |
remote: npm ERR! at ChildProcess.<anonymous> (/home/prod_web1/local/lib/node_modules/npm/lib/utils/exec.js:58:20) | |
remote: npm ERR! at ChildProcess.emit (events.js:70:17) | |
remote: npm ERR! at maybeExit (child_process.js:362:16) | |
remote: npm ERR! at Socket.<anonymous> (child_process.js:467:7) | |
remote: npm ERR! at Socket.emit (events.js:67:17) | |
remote: npm ERR! at Array.<anonymous> (net.js:335:10) | |
remote: npm ERR! at EventEmitter._tickCallback (node.js:190:38) | |
remote: npm ERR! You may report this log at: | |
remote: npm ERR! <http://github.com/isaacs/npm/issues> | |
remote: npm ERR! or email it to: | |
remote: npm ERR! <[email protected]> | |
remote: npm ERR! | |
remote: npm ERR! System Linux 3.4.2-x86_64-linode25 | |
remote: npm ERR! command "node" "/home/prod_web1/local/bin/npm" "install" | |
remote: npm ERR! cwd /home/prod_web1/slugs/96e9b06d2094d4b5a006c342be7ca706e8fc0954 | |
remote: npm ERR! node -v v0.6.19 | |
remote: npm ERR! npm -v 1.1.24 | |
remote: npm ERR! message `git "checkout" "master"` failed with 128 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Results with env: