Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Ender.js doesnt build #5

Closed
sha1dy opened this issue Apr 14, 2011 · 18 comments
Closed

Ender.js doesnt build #5

sha1dy opened this issue Apr 14, 2011 · 18 comments

Comments

@sha1dy
Copy link

sha1dy commented Apr 14, 2011

make doesnt work with latest ender.js

node make/build.js

node.js:63
    throw e;
    ^
Error: Cannot find module 'colors'
    at loadModule (node.js:275:15)
    at require (node.js:411:14)
    at Object.<anonymous> (/home/user/Development/Ender.js/build/smoosh/lib/smoosh/index.js:2:14)
    at Module._compile (node.js:462:23)
    at Module._loadScriptSync (node.js:469:10)
    at Module.loadSync (node.js:338:12)
    at loadModule (node.js:283:14)
    at require (node.js:411:14)
    at Object.<anonymous> (/home/user/Development/Ender.js/build/smoosh/index.js:1:80)
    at Module._compile (node.js:462:23)
make: *** [boosh] Error 1
@jgallen23
Copy link

I have the same issue. I tried git submodule update --init --recursive, but that seems to be an infinite loop of updating submodules

@ded
Copy link
Member

ded commented Apr 14, 2011

i'm going to nuke our double-maintained build system in favor of ender-CLI (which is the way forward anyway). We've hit our submodule limit and we've come to realize they don't scale for how Ender uses them. Expect a fix for this within a day.

@fat
Copy link
Contributor

fat commented Apr 14, 2011

we're planning on deprecating the make for building... I'll look into this however... in the mean time, it's better to use

ender -b files,you,want,to,build

also (incase you haven't already)

npm install ender

@jgallen23
Copy link

after doing npm install ender and then trying the ender -b script,bean I get this:

node.js:116
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: Cannot find module 'request'
    at Function._resolveFilename (module.js:290:11)
    at Function._load (module.js:242:25)
    at require (module.js:318:19)
    at Object. (/usr/local/lib/node/.npm/ender/0.0.3/package/bin/ender:4:15)
    at Module._compile (module.js:374:26)
    at Object..js (module.js:380:10)
    at Module.load (module.js:306:31)
    at Function._load (module.js:272:10)
    at Array. (module.js:393:10)
    at EventEmitter._tickCallback (node.js:108:26)

@ded
Copy link
Member

ded commented Apr 14, 2011

  1. 'script' is not a module on npm (it's called scriptjs)
  2. request is also not a module on npm (it's called reqwest).

try this:

ender -b bean,scriptjs,reqwest

@ded
Copy link
Member

ded commented Apr 14, 2011

FYI: it's not bad that you mistaken these names. We have a plan to resolve common modules. It's gonna be awesome, I promise.

@ded
Copy link
Member

ded commented Apr 15, 2011

ok. i'm closing this out. we've completely removed the submodules in favor of the Ender CLI option. in the meantime, simply run ender -b and that will build the Jeesh. otherwise, atm, the CLI option requires you use the correct names.

@ded ded closed this as completed Apr 15, 2011
@jgallen23
Copy link

I think this should be reopened. I ran npm update and I still get the same issue:

[jga] ~: ender -b bean,scriptjs,reqwest

node.js:116
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: Cannot find module 'request'
    at Function._resolveFilename (module.js:290:11)
    at Function._load (module.js:242:25)
    at require (module.js:318:19)
    at Object. (/usr/local/lib/node/.npm/ender/0.0.6/package/bin/ender:4:15)
    at Module._compile (module.js:374:26)
    at Object..js (module.js:380:10)
    at Module.load (module.js:306:31)
    at Function._load (module.js:272:10)
    at Array. (module.js:393:10)
    at EventEmitter._tickCallback (node.js:108:26)

@benschwarz
Copy link

Also seeing the same as above.

@ded
Copy link
Member

ded commented Apr 15, 2011

$ npm update
$ ender -b bean,scriptjs,reqwest

Still outputs Cannot find module 'request'?

@fat
Copy link
Contributor

fat commented Apr 15, 2011

Sorry, ender requires the request package, but we forgot to add it to our decencies... should be added now, just npm update and you'll be good.

@benschwarz
Copy link

Now I get:

⚡ ender -b bean,scriptjs,reqwest
Building the Dragon Army with 3 modules
module bean already installed ✓
module scriptjs already installed ✓
module reqwest already installed ✓
main source for reqwest was not found at the repository URL
main source for bean was not found at the repository URL
main source for scriptjs was not found at the repository URL

@ded
Copy link
Member

ded commented Apr 16, 2011

@benschwarz when you type this, what do you get?

$ npm ls installed | grep ender

@benschwarz
Copy link

⚡ npm ls installed | grep ender
npm info it worked if it ends with ok
npm info using npm@0.2.3
npm ok
ender@0.0.7                              =ded =fat active installed latest remote

@ryanfitzer
Copy link

When installing using just ender -b on node v0.5.0-pre and npm 0.3.18, I get:

ENDER - The no-library library
error: ender build requires packages.

Worked fine when I declared the packages :)

@fat
Copy link
Contributor

fat commented Apr 18, 2011

yep, you need to specify which packages you want to build

ender -b qwery[,foo,bar]...

@fat
Copy link
Contributor

fat commented Apr 18, 2011

if you update to the lastest build -- and you want the default jeesh... you can run:

ender -b jeesh

@ryanfitzer
Copy link

Whoops! I must have gotten confused with the "upgrade in small portions" section where it shows the ender -b command.

Thanks for the help.

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

No branches or pull requests

6 participants