Symlink executables instead of coping #77

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@eldargab
eldargab commented Jul 2, 2012

Just coping node module's executable breaks it because it is not able to require things after that.

@skyisle
skyisle commented Jul 5, 2012

-s does not exist on osx cp.

@arikon arikon commented on the diff Jul 11, 2012
@@ -139,10 +139,10 @@ install_node() {
local dir=$VERSIONS_DIR/$version
if test -d $dir; then
# TODO: refactor, this is lame
- cd $dir \
+ cd $N_PREFIX/bin \
+ && cp -fs $dir/bin/* .\
@arikon
arikon Jul 11, 2012

You should use ln -sf instead of cp -fs

@eldargab eldargab closed this Oct 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment