Note that there are some explanatory texts on larger screens.

plurals
  1. POusing bogart on Nodester
    text
    copied!<p>TLDR: Node app works locally, doesn't work on Nodester.com, seems to be a npm issue.</p> <p>Detailed Version:</p> <p>I wrote a node app with bogart and couchdb (basically following <a href="http://howtonode.org/bogart-couchdb" rel="nofollow">http://howtonode.org/bogart-couchdb</a>) and it <strong>runs fine locally</strong>. </p> <p>I installed the node extensions locally with</p> <pre><code>npm install bogart npm install couchdb </code></pre> <p>On Nodester, i installed them via the CLI as</p> <pre><code>nodester npm install bogart couchdb </code></pre> <p>and it <strong>returned success</strong>.</p> <p>Now i pushed my working code to the Nodester.com repo and ran into trouble, <strong>script crashes</strong> and the log said </p> <pre><code>Error: Cannot find module 'zlib' at Function._resolveFilename (module.js:322:11) at Function._load (module.js:267:25) at require (module.js:351:19) at Object.&lt;anonymous&gt; (/node_modules/bogart/lib/middleware.js:67:16) at Function.&lt;anonymous&gt; (/node_modules/bogart/lib/middleware.js:781:15) at /node_modules/bogart/lib/bogart.js:162:35 at Array.forEach (native) at App.start (/node_modules/bogart/lib/bogart.js:155:21) at Object.&lt;anonymous&gt; (/app/server.js:80:5) at Module._compile (module.js:407:26) </code></pre> <p>After that, i tried</p> <pre><code>nodester npm install zlib </code></pre> <p>and it returned</p> <pre><code>nodester info installing these npm packages: zlib nodester &gt; zlib@1.0.5 preinstall /node/app/username/repo/node_modules/zlib nodester &gt; node-waf clean || true; node-waf configure build nodester zlib@1.0.5 ./node_modules/zlib nodester Nothing to clean (project not configured) nodester Setting srcdir to : /node/app/username/repo/node_modules/zlib nodester Setting blddir to : /node/app/username/repo/node_modules/zlib/build nodester Checking for program g++ or c++ : /usr/bin/g++ nodester Checking for program cpp : /usr/bin/cpp nodester Checking for program ar : /usr/bin/ar nodester Checking for program ranlib : /usr/bin/ranlib nodester Checking for g++ : ok nodester Checking for node path : not found nodester Checking for node prefix : ok /usr nodester Checking for library z : yes nodester 'configure' finished successfully (0.128s) nodester Waf: Entering directory `/node/app/username/repo/node_modules/zlib/build' nodester [1/2] cxx: src/node-zlib.cc -&gt; build/default/src/node-zlib_1.o nodester ../src/node-zlib.cc: In function 'v8::Handle&lt;v8::Value&gt; ZLib_deflate(const v8::Arguments&amp;)': nodester ../src/node-zlib.cc:82: warning: left-hand operand of comma has no effect nodester ../src/node-zlib.cc: In function 'v8::Handle&lt;v8::Value&gt; ZLib_inflate(const v8::Arguments&amp;)': nodester ../src/node-zlib.cc:83: warning: left-hand operand of comma has no effect nodester [2/2] cxx_link: build/default/src/node-zlib_1.o -&gt; build/default/zlib_bindings.node nodester Waf: Leaving directory `/node/app/username/repo/node_modules/zlib/build' nodester 'build' finished successfully (0.214s) </code></pre> <p>Looks like it was <strong>not completely installed</strong>, but now, instead of a 503 due to a server crash, it seems to start. But now the script throws a </p> <pre><code>An error occurred.Object # has no method 'createGzip' Stack Trace: TypeError: Object # has no method 'createGzip' at /node_modules/bogart/lib/middleware.js:88:33 at notify (/node_modules/bogart/node_modules/promised-io/lib/promise.js:181:22) at notifyAll (/node_modules/bogart/node_modules/promised-io/lib/promise.js:164:5) at /node_modules/bogart/node_modules/promised-io/lib/promise.js:205:3 at notify (/node_modules/bogart/node_modules/promised-io/lib/promise.js:181:22) at [object Object].then (/node_modules/bogart/node_modules/promised-io/lib/promise.js:234:4) at notify (/node_modules/bogart/node_modules/promised-io/lib/promise.js:183:17) at notifyAll (/node_modules/bogart/node_modules/promised-io/lib/promise.js:164:5) at [object Object]. (/node_modules/bogart/node_modules/promised-io/lib/promise.js:211:3) at /node_modules/bogart/lib/middleware.js:347:22 </code></pre> <p>Sorry for the walls of text, but this is kinda strange since it runs locally without any problem, the db connect and everything.</p> <p>Similar issue at <a href="https://github.com/devongovett/pdfkit/issues/42" rel="nofollow">https://github.com/devongovett/pdfkit/issues/42</a></p> <p>Any ideas?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload