justinlatimer/node-midi — Issue #9: Build script appears to use hard-coded path name in /Users/justin
Author: gilesbowkett
Created: 2012-01-18 01:25:33+00:00
State: open

Any way I can work around this? I forked the project and searched it, but haven't tracked down the problem yet. I'm a bit of an npm newb.

The crucial line:

```OSError: [Errno 2] No such file or directory: '/Users/justin/Documents/Projects/node-midi/build'```

The full stack trace:

```
[01-17 17:10] ~/dev/fuck_yeah_hacking/coffeescript_arx_port master
↪ npm install midi
npm http GET https://registry.npmjs.org/midi
npm http 304 https://registry.npmjs.org/midi

> midi@v0.5.0 preinstall /Users/giles/dev/fuck_yeah_hacking/coffeescript_arx_port/node_modules/midi
> make

node-waf clean || true; node-waf configure build
Nothing to clean (project not configured)
Setting srcdir to : /Users/giles/dev/fuck_yeah_hacking/coffeescript_arx_port/node_modules/midi
Setting blddir to : /Users/giles/dev/fuck_yeah_hacking/coffeescript_arx_port/node_modules/midi/build
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 : ok /Users/giles/.node_libraries
Checking for node prefix : ok /usr/local/n/versions/0.6.7
'configure' finished successfully (0.079s)
Waf: Entering directory `/Users/justin/Documents/Projects/node-midi/build'
Waf: Leaving directory `/Users/justin/Documents/Projects/node-midi/build'
Traceback (most recent call last):
File "/usr/local/n/versions/0.6.7/bin/node-waf", line 16, in
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/usr/local/n/versions/0.6.7/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/usr/local/n/versions/0.6.7/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/usr/local/n/versions/0.6.7/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/usr/local/n/versions/0.6.7/bin/../lib/node/wafadmin/Scripting.py", line 386, in build
return build_impl(bld)
File "/usr/local/n/versions/0.6.7/bin/../lib/node/wafadmin/Scripting.py", line 405, in build_impl
bld.compile()
File "/usr/local/n/versions/0.6.7/bin/../lib/node/wafadmin/Build.py", line 268, in compile
os.chdir(self.bldnode.abspath())
OSError: [Errno 2] No such file or directory: '/Users/justin/Documents/Projects/node-midi/build'
make: *** [all] Error 1
npm ERR! error installing midi@v0.5.0
npm ERR! midi@v0.5.0 preinstall: `make`
npm ERR! `sh "-c" "make"` failed with 2
npm ERR!
npm ERR! Failed at the midi@v0.5.0 preinstall script.
npm ERR! This is most likely a problem with the midi package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make
npm ERR! You can get their info via:
npm ERR! npm owner ls midi
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/n/versions/0.6.7/bin/npm" "install" "midi"
npm ERR! cwd /Users/giles/dev/fuck_yeah_hacking/coffeescript_arx_port
npm ERR! node -v v0.6.7
npm ERR! npm -v 1.1.0-beta-10
npm ERR! code ELIFECYCLE
npm ERR! message midi@v0.5.0 preinstall: `make`
npm ERR! message `sh "-c" "make"` failed with 2
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/giles/dev/fuck_yeah_hacking/coffeescript_arx_port/npm-debug.log
npm not ok
```