felixge/node-formidable — Issue #137: bin/cloud9.sh fails to build do to missing uglify-js module.
Author: davidbitton
Created: 2012-02-23 14:22:30+00:00
State: open

I did a git clone on my Mac. Here is the output from calling bin/clouyd9.sh from a command prompt:

```bash
dbmac:cloud9 bittond$ bin/cloud9.sh
npm http GET https://registry.npmjs.org/asyncjs/0.0.5
npm http GET https://registry.npmjs.org/jsftp/0.2.1
npm http GET https://registry.npmjs.org/node-sftp/0.1.1
npm http GET https://registry.npmjs.org/libxml/0.0.3
npm http GET https://registry.npmjs.org/formidable/1.0.8
npm http 200 https://registry.npmjs.org/asyncjs/0.0.5
npm http 200 https://registry.npmjs.org/node-sftp/0.1.1
npm http 200 https://registry.npmjs.org/formidable/1.0.8
npm http GET https://registry.npmjs.org/asyncjs/-/asyncjs-0.0.5.tgz
npm http GET https://registry.npmjs.org/node-sftp/-/node-sftp-0.1.1.tgz
npm http GET https://registry.npmjs.org/formidable/-/formidable-1.0.8.tgz
npm http 200 https://registry.npmjs.org/libxml/0.0.3
npm http GET https://registry.npmjs.org/libxml/-/libxml-0.0.3.tgz
npm http 200 https://registry.npmjs.org/jsftp/0.2.1
npm http GET https://registry.npmjs.org/jsftp/-/jsftp-0.2.1.tgz
npm http 200 https://registry.npmjs.org/asyncjs/-/asyncjs-0.0.5.tgz
npm http 200 https://registry.npmjs.org/node-sftp/-/node-sftp-0.1.1.tgz
npm http 200 https://registry.npmjs.org/formidable/-/formidable-1.0.8.tgz
npm http 200 https://registry.npmjs.org/libxml/-/libxml-0.0.3.tgz
npm http 200 https://registry.npmjs.org/jsftp/-/jsftp-0.2.1.tgz
npm WARN jsftp@0.2.1 package.json: bugs['web'] should probably be bugs['url']
npm WARN streamer@0.0.4 package.json: bugs['web'] should probably be bugs['url']
npm http GET https://registry.npmjs.org/streamer
npm http 200 https://registry.npmjs.org/streamer
npm http GET https://registry.npmjs.org/streamer/-/streamer-0.2.1.tgz
npm http 200 https://registry.npmjs.org/streamer/-/streamer-0.2.1.tgz

> libxml@0.0.3 preinstall /Users/bittond/src/cloud9/support/jsdav/node_modules/libxml
> ./build.sh

npm WARN streamer@0.2.1 package.json: bugs['web'] should probably be bugs['url']
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.759s)
Waf: Entering directory `/Users/bittond/src/cloud9/support/jsdav/node_modules/libxml/support/o3/build'
[1/3] cxx: hosts/node-o3/sh_node.cc -> build/Release/hosts/node-o3/sh_node_1.o
09:18:23 runner system command -> ['/usr/bin/g++', '-g', '-O3', '-msse2', '-ffast-math', '-fPIC', '-compatibility_version', '1', '-current_version', '1', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_GNU_SOURCE', '-IRelease/include', '-I../include', '-IRelease/hosts', '-I../hosts', '-IRelease/modules', '-I../modules', '-IRelease/deps', '-I../deps', '-I/usr/local/include/node', '../hosts/node-o3/sh_node.cc', '-c', '-o', 'Release/hosts/node-o3/sh_node_1.o']
[2/3] cxx: hosts/node-o3/sh_node_libs.cc -> build/Release/hosts/node-o3/sh_node_libs_1.o
09:18:23 runner system command -> ['/usr/bin/g++', '-g', '-O3', '-msse2', '-ffast-math', '-fPIC', '-compatibility_version', '1', '-current_version', '1', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_GNU_SOURCE', '-IRelease/include', '-I../include', '-IRelease/hosts', '-I../hosts', '-IRelease/modules', '-I../modules', '-IRelease/deps', '-I../deps', '-I/usr/local/include/node', '../hosts/node-o3/sh_node_libs.cc', '-c', '-o', 'Release/hosts/node-o3/sh_node_libs_1.o']
[3/3] cxx_link: build/Release/hosts/node-o3/sh_node_1.o build/Release/hosts/node-o3/sh_node_libs_1.o -> build/Release/o3.node
09:18:47 runner system command -> ['/usr/bin/g++', 'Release/hosts/node-o3/sh_node_1.o', 'Release/hosts/node-o3/sh_node_libs_1.o', '-o', '/Users/bittond/src/cloud9/support/jsdav/node_modules/libxml/support/o3/build/Release/o3.node', '-bundle', '-undefined', 'dynamic_lookup', '-L/usr/local/lib', '-lxml2']
Waf: Leaving directory `/Users/bittond/src/cloud9/support/jsdav/node_modules/libxml/support/o3/build'
'build' finished successfully (25.173s)
node-sftp@0.1.1 ./node_modules/node-sftp
asyncjs@0.0.5 ./node_modules/asyncjs
formidable@1.0.8 ./node_modules/formidable
jsftp@0.2.1 ./node_modules/jsftp
└── streamer@0.2.1
libxml@0.0.3 ./node_modules/libxml
OSX

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'uglify-js'
at Function._resolveFilename (module.js:326:11)
at Function._load (module.js:271:25)
at require (module.js:355:19)
at Object. (/Users/bittond/src/cloud9/support/socket.io-client/bin/builder.js:13:14)
at Module. (module.js:411:26)
at Module._compile (/Users/bittond/src/cloud9/support/requireJS-node.js:9:27)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at require (module.js:355:19)
```