nodules icon indicating copy to clipboard operation
nodules copied to clipboard

error with example

Open Meai opened this issue 15 years ago • 3 comments

~/local/lib/node/nodules/example$ node ../lib/nodules.js (node) process.compile should not be used. Use require('vm').runInThisContext instead. Downloading http://github.com/kriszyp/commonjs-utils/zipball/master

node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Array.prototype.toString is not generic failed to load jar:http://github.com/kriszyp/commonjs-utils/zipball/master!/lib/json-schema.js at Object. (/home/pc/local/lib/node/.npm/nodules/0.2.1/package/lib/nodules.js:354:12) at /home/pc/local/lib/node/.npm/nodules/0.2.1/package/lib/nodules.js:236:23 at Object. (file:///home/pc/local/lib/node/.npm/nodules/0.2.1/package/example/lib/index.js:1:97) at /home/pc/local/lib/node/.npm/nodules/0.2.1/package/lib/nodules.js:236:23 at /home/pc/local/lib/node/.npm/nodules/0.2.1/package/lib/nodules.js:128:3 at Array. (/home/pc/local/lib/node/.npm/nodules/0.2.1/package/lib/nodules.js:367:7) at EventEmitter._tickCallback (node.js:126:26)

Meai avatar Apr 13 '11 10:04 Meai

same here

Matschile avatar Jun 24 '11 17:06 Matschile

seems like my prob was that npm just offers an old version...solved after update

Matschile avatar Jun 24 '11 18:06 Matschile

I was experiencing the same issue, using a newer version of nodules than the one provided by NPM also solved this issue for me. However, then there was a new thing:

Error: Error: Target path lib/json-schema.js not found in archive http://github.com/kriszyp/commonjs-utils/zipball/master

I manually added a new subdirectory named lib and moved json-schema.js there, then at least there was no error message - although I'm still not quite sure if it actually worked. The result I get when I execute node ../lib/nodules.js in example is now the following:

We can access modules within the local package using top level ids, and from here we can use a relative reference: true The latest value from sibling is 444 [object Object] This indicates that we are the main/entry module

Does that mean nodules is set up correctly? As you might guess, I'm quite new to it and not sure to expect from the example ...

horstus avatar Aug 26 '11 13:08 horstus