Coder Social home page Coder Social logo

Comments (5)

jasonkarns avatar jasonkarns commented on July 21, 2024

can you provide version numbers (nodenv --version && nodenv install --version) and gist the full output from your install command? (with NODENV_DEBUG=1set)

Also, which method did you use to install nodenv and node-build? eg git-clone, homebrew

from nodenv.

orlando avatar orlando commented on July 21, 2024

Well, looks like running the same install with NODENV_DEBUG=1 somehow did the trick, it installed correctly. Here's the log and the version of nodenv.

nodenv 1.0.0
node-build 2.2.4
orlando~ NODENV_DEBUG=1 nodenv install 5.9.0
+ [nodenv:23] enable -f /usr/local/bin/../libexec/nodenv-realpath.dylib realpath
+ [nodenv:29] '[' -z '' ']'
++ [nodenv:31] type -p greadlink readlink
++ [nodenv:31] head -1
+ [nodenv:31] READLINK=/usr/bin/readlink
+ [nodenv:32] '[' -n /usr/bin/readlink ']'
+ [nodenv:53] '[' -z '' ']'
+ [nodenv:54] NODENV_ROOT=/Users/orlando/.nodenv
+ [nodenv:58] export NODENV_ROOT
+ [nodenv:60] '[' -z '' ']'
+ [nodenv:61] NODENV_DIR=/Users/orlando
+ [nodenv:67] export NODENV_DIR
+ [nodenv:70] shopt -s nullglob
++ [nodenv:72] abs_dirname /usr/local/bin/nodenv
++ [nodenv:39] local cwd=/Users/orlando
++ [nodenv:40] local path=/usr/local/bin/nodenv
++ [nodenv:42] '[' -n /usr/local/bin/nodenv ']'
++ [nodenv:43] cd /usr/local/bin
++ [nodenv:44] local name=nodenv
+++ [nodenv:45] resolve_link nodenv
+++ [nodenv:35] /usr/bin/readlink nodenv
++ [nodenv:45] path=../Cellar/nodenv/1.0.0/bin/nodenv
++ [nodenv:42] '[' -n ../Cellar/nodenv/1.0.0/bin/nodenv ']'
++ [nodenv:43] cd ../Cellar/nodenv/1.0.0/bin
++ [nodenv:44] local name=nodenv
+++ [nodenv:45] resolve_link nodenv
+++ [nodenv:35] /usr/bin/readlink nodenv
++ [nodenv:45] path=../libexec/nodenv
++ [nodenv:42] '[' -n ../libexec/nodenv ']'
++ [nodenv:43] cd ../libexec
++ [nodenv:44] local name=nodenv
+++ [nodenv:45] resolve_link nodenv
+++ [nodenv:35] /usr/bin/readlink nodenv
+++ [nodenv:45] true
++ [nodenv:45] path=
++ [nodenv:42] '[' -n '' ']'
++ [nodenv:48] pwd
++ [nodenv:49] cd /Users/orlando
+ [nodenv:72] bin_path=/usr/local/Cellar/nodenv/1.0.0/libexec
+ [nodenv:76] export PATH=/usr/local/Cellar/nodenv/1.0.0/libexec:/usr/local/heroku/bin:/Users/orlando/.nodenv/shims:/Users/orlando/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
+ [nodenv:76] PATH=/usr/local/Cellar/nodenv/1.0.0/libexec:/usr/local/heroku/bin:/Users/orlando/.nodenv/shims:/Users/orlando/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
+ [nodenv:78] NODENV_HOOK_PATH=:/Users/orlando/.nodenv/nodenv.d
+ [nodenv:79] '[' /usr/local/Cellar/nodenv/1.0.0 '!=' /Users/orlando/.nodenv ']'
+ [nodenv:81] NODENV_HOOK_PATH=:/Users/orlando/.nodenv/nodenv.d:/usr/local/Cellar/nodenv/1.0.0/nodenv.d
+ [nodenv:83] NODENV_HOOK_PATH=:/Users/orlando/.nodenv/nodenv.d:/usr/local/Cellar/nodenv/1.0.0/nodenv.d:/usr/local/etc/nodenv.d:/etc/nodenv.d:/usr/lib/nodenv/hooks
+ [nodenv:87] NODENV_HOOK_PATH=/Users/orlando/.nodenv/nodenv.d:/usr/local/Cellar/nodenv/1.0.0/nodenv.d:/usr/local/etc/nodenv.d:/etc/nodenv.d:/usr/lib/nodenv/hooks
+ [nodenv:88] export NODENV_HOOK_PATH
+ [nodenv:90] shopt -u nullglob
+ [nodenv:93] command=install
+ [nodenv:94] case "$command" in
++ [nodenv:107] command -v nodenv-install
+ [nodenv:107] command_path=/usr/local/bin/nodenv-install
+ [nodenv:108] '[' -n /usr/local/bin/nodenv-install ']'
+ [nodenv:110] shift 1
+ [nodenv:111] '[' 5.9.0 = --help ']'
+ [nodenv:114] exec /usr/local/bin/nodenv-install 5.9.0
+ [nodenv-install:32] shopt -s nullglob
+ [nodenv-install:36] export NODE_BUILD_DEFINITIONS
+ [nodenv-install:37] shopt -u nullglob
+ [nodenv-install:40] '[' 5.9.0 = --complete ']'
++ [nodenv-install:53] node-build --lib
+ [nodenv-install:53] eval 'lib ()
{
    function parse_options ()
    {
        OPTIONS=();
        ARGUMENTS=();
        local arg option index;
        for arg in "$@";
        do
            if [ "${arg:0:1}" = "-" ]; then
                if [ "${arg:1:1}" = "-" ]; then
                    OPTIONS[${#OPTIONS[*]}]="${arg:2}";
                else
                    index=1;
                    while option="${arg:$index:1}"; do
                        [ -n "$option" ] || break;
                        OPTIONS[${#OPTIONS[*]}]="$option";
                        index=$(($index+1));
                    done;
                fi;
            else
                ARGUMENTS[${#ARGUMENTS[*]}]="$arg";
            fi;
        done
    };
    if [ "$1" == "--$FUNCNAME" ]; then
        declare -f "$FUNCNAME";
        echo "$FUNCNAME \"\$1\";";
        exit;
    fi
}
lib "$1";'
++ [nodenv-install:84] lib 5.9.0
++ [nodenv-install:78] '[' 5.9.0 == --lib ']'
+ [nodenv-install:69] unset FORCE
+ [nodenv-install:70] unset SKIP_BINARY
+ [nodenv-install:71] unset SKIP_EXISTING
+ [nodenv-install:72] unset KEEP
+ [nodenv-install:73] unset VERBOSE
+ [nodenv-install:74] unset HAS_PATCH
+ [nodenv-install:76] parse_options 5.9.0
+ [nodenv-install:57] OPTIONS=()
+ [nodenv-install:58] ARGUMENTS=()
+ [nodenv-install:59] local arg option index
+ [nodenv-install:60] for arg in '"$@"'
+ [nodenv-install:62] '[' 5 = - ']'
+ [nodenv-install:74] ARGUMENTS[${#ARGUMENTS[*]}]=5.9.0
+ [nodenv-install:114] '[' 1 -le 1 ']'
+ [nodenv-install:116] unset VERSION_NAME
+ [nodenv-install:122] DEFINITION=5.9.0
+ [nodenv-install:123] '[' -n 5.9.0 ']'
+ [nodenv-install:124] '[' -n 5.9.0 ']'
+ [nodenv-install:129] declare -a before_hooks after_hooks
+ [nodenv-install:141] OLDIFS='
'
+ [nodenv-install:142] IFS='
'
+ [nodenv-install:142] scripts=(`nodenv-hooks install`)
++ [nodenv-install:142] nodenv-hooks install
+ [nodenv-hooks:9] '[' install = --complete ']'
+ [nodenv-hooks:18] NODENV_COMMAND=install
+ [nodenv-hooks:19] '[' -z install ']'
+ [nodenv-hooks:24] enable -f /usr/local/Cellar/nodenv/1.0.0/libexec/nodenv-realpath.dylib realpath
+ [nodenv-hooks:25] '[' -n '' ']'
++ [nodenv-hooks:29] type -p greadlink readlink
++ [nodenv-hooks:29] head -1
+ [nodenv-hooks:29] READLINK=/usr/bin/readlink
+ [nodenv-hooks:30] '[' -z /usr/bin/readlink ']'
+ [nodenv-hooks:55] IFS=:
+ [nodenv-hooks:55] hook_paths=($NODENV_HOOK_PATH)
+ [nodenv-hooks:57] shopt -s nullglob
+ [nodenv-hooks:58] for path in '"${hook_paths[@]}"'
+ [nodenv-hooks:58] for path in '"${hook_paths[@]}"'
+ [nodenv-hooks:58] for path in '"${hook_paths[@]}"'
+ [nodenv-hooks:58] for path in '"${hook_paths[@]}"'
+ [nodenv-hooks:58] for path in '"${hook_paths[@]}"'
+ [nodenv-hooks:63] shopt -u nullglob
+ [nodenv-install:143] IFS='
'
+ [nodenv-install:149] '[' -n '' ']'
+ [nodenv-install:149] VERSION_NAME=5.9.0
+ [nodenv-install:150] PREFIX=/Users/orlando/.nodenv/versions/5.9.0
+ [nodenv-install:152] '[' -d /Users/orlando/.nodenv/versions/5.9.0 ']'
+ [nodenv-install:156] '[' -d /Users/orlando/.nodenv/versions/5.9.0/bin ']'
+ [nodenv-install:174] '[' -n '' ']'
+ [nodenv-install:181] '[' -z '' ']'
+ [nodenv-install:181] '[' -d /Users/orlando/.nodenv/cache ']'
++ [nodenv-install:186] nodenv-global
+ [nodenv-install:186] export NODENV_VERSION=system
+ [nodenv-install:186] NODENV_VERSION=system
+ [nodenv-install:196] trap cleanup SIGINT
+ [nodenv-install:199] STATUS=0
+ [nodenv-install:200] node-build 5.9.0 /Users/orlando/.nodenv/versions/5.9.0
Downloading node-v5.9.0-darwin-x64.tar.gz...
-> https://nodejs.org/dist/v5.9.0/node-v5.9.0-darwin-x64.tar.gz
Installing node-v5.9.0-darwin-x64...
Installed node-v5.9.0-darwin-x64 to /Users/orlando/.nodenv/versions/5.9.0

+ [nodenv-install:203] '[' 0 == 2 ']'
+ [nodenv-install:231] '[' 0 == 0 ']'
+ [nodenv-install:232] nodenv-rehash
+ [nodenv-rehash:7] SHIM_PATH=/Users/orlando/.nodenv/shims
+ [nodenv-rehash:8] PROTOTYPE_SHIM_PATH=/Users/orlando/.nodenv/shims/.nodenv-shim
+ [nodenv-rehash:11] mkdir -p /Users/orlando/.nodenv/shims
+ [nodenv-rehash:17] set -o noclobber
+ [nodenv-rehash:27] set +o noclobber
+ [nodenv-rehash:31] trap remove_prototype_shim EXIT
+ [nodenv-rehash:104] registered_shims=' '
+ [nodenv-rehash:133] shopt -s nullglob
+ [nodenv-rehash:137] create_prototype_shim
+ [nodenv-rehash:43] cat
++ [nodenv-rehash:43] command -v nodenv
+ [nodenv-rehash:66] chmod +x /Users/orlando/.nodenv/shims/.nodenv-shim
+ [nodenv-rehash:138] remove_outdated_shims
+ [nodenv-rehash:73] local shim
++ [nodenv-rehash:139] list_executable_names
++ [nodenv-rehash:84] local version file
++ [nodenv-rehash:139] sort -u
++ [nodenv-rehash:85] nodenv-versions --bare --skip-aliases
++ [nodenv-rehash:86] read version
+ [nodenv-versions:10] unset bare
+ [nodenv-versions:11] unset skip_aliases
+ [nodenv-versions:13] for arg in '"$@"'
+ [nodenv-versions:14] case "$arg" in
+ [nodenv-versions:19] bare=1
+ [nodenv-versions:13] for arg in '"$@"'
+ [nodenv-versions:14] case "$arg" in
+ [nodenv-versions:20] skip_aliases=1
+ [nodenv-versions:28] versions_dir=/Users/orlando/.nodenv/versions
+ [nodenv-versions:30] enable -f /usr/local/Cellar/nodenv/1.0.0/libexec/nodenv-realpath.dylib realpath
+ [nodenv-versions:31] '[' -n '' ']'
++ [nodenv-versions:36] type -p greadlink readlink
++ [nodenv-versions:36] head -1
+ [nodenv-versions:36] READLINK=/usr/bin/readlink
+ [nodenv-versions:37] '[' -z /usr/bin/readlink ']'
+ [nodenv-versions:62] '[' -d /Users/orlando/.nodenv/versions ']'
++ [nodenv-versions:63] realpath /Users/orlando/.nodenv/versions
++ [nodenv-versions:47] local cwd=/Users/orlando
++ [nodenv-versions:48] local path=/Users/orlando/.nodenv/versions
++ [nodenv-versions:49] local name
++ [nodenv-versions:51] '[' -n /Users/orlando/.nodenv/versions ']'
++ [nodenv-versions:52] name=versions
++ [nodenv-versions:53] '[' versions = /Users/orlando/.nodenv/versions ']'
++ [nodenv-versions:53] cd /Users/orlando/.nodenv
+++ [nodenv-versions:54] resolve_link versions
+++ [nodenv-versions:43] /usr/bin/readlink versions
+++ [nodenv-versions:54] true
++ [nodenv-versions:54] path=
++ [nodenv-versions:51] '[' -n '' ']'
++ [nodenv-versions:57] echo /Users/orlando/.nodenv/versions
++ [nodenv-versions:58] cd /Users/orlando
+ [nodenv-versions:63] versions_dir=/Users/orlando/.nodenv/versions
+ [nodenv-versions:66] '[' -n 1 ']'
+ [nodenv-versions:67] hit_prefix=
+ [nodenv-versions:68] miss_prefix=
+ [nodenv-versions:69] current_version=
+ [nodenv-versions:70] include_system=
+ [nodenv-versions:78] num_versions=0
+ [nodenv-versions:90] '[' -n '' ']'
+ [nodenv-versions:94] shopt -s nullglob
+ [nodenv-versions:95] for path in '"$versions_dir"/*'
+ [nodenv-versions:96] '[' -d /Users/orlando/.nodenv/versions/5.9.0 ']'
+ [nodenv-versions:97] '[' -n 1 ']'
+ [nodenv-versions:97] '[' -L /Users/orlando/.nodenv/versions/5.9.0 ']'
+ [nodenv-versions:101] print_version 5.9.0
+ [nodenv-versions:81] '[' 5.9.0 == '' ']'
+ [nodenv-versions:84] echo 5.9.0
+ [nodenv-versions:86] num_versions=1
+ [nodenv-versions:104] shopt -u nullglob
++ [nodenv-rehash:87] for file in '"${NODENV_ROOT}/versions/${version}/bin/"*'
++ [nodenv-rehash:88] echo node
+ [nodenv-versions:106] '[' 1 -eq 0 ']'
++ [nodenv-rehash:87] for file in '"${NODENV_ROOT}/versions/${version}/bin/"*'
++ [nodenv-rehash:88] echo npm
++ [nodenv-rehash:86] read version
+ [nodenv-rehash:139] make_shims node npm
+ [nodenv-rehash:97] local file shim
+ [nodenv-rehash:98] for file in '"$@"'
+ [nodenv-rehash:99] shim=node
+ [nodenv-rehash:100] register_shim node
+ [nodenv-rehash:108] registered_shims=' node '
+ [nodenv-rehash:98] for file in '"$@"'
+ [nodenv-rehash:99] shim=npm
+ [nodenv-rehash:100] register_shim npm
+ [nodenv-rehash:108] registered_shims=' node npm '
+ [nodenv-rehash:143] OLDIFS='
'
+ [nodenv-rehash:144] IFS='
'
+ [nodenv-rehash:144] scripts=(`nodenv-hooks rehash`)
++ [nodenv-rehash:144] nodenv-hooks rehash
+ [nodenv-hooks:9] '[' rehash = --complete ']'
+ [nodenv-hooks:18] NODENV_COMMAND=rehash
+ [nodenv-hooks:19] '[' -z rehash ']'
+ [nodenv-hooks:24] enable -f /usr/local/Cellar/nodenv/1.0.0/libexec/nodenv-realpath.dylib realpath
+ [nodenv-hooks:25] '[' -n '' ']'
++ [nodenv-hooks:29] type -p greadlink readlink
++ [nodenv-hooks:29] head -1
+ [nodenv-hooks:29] READLINK=/usr/bin/readlink
+ [nodenv-hooks:30] '[' -z /usr/bin/readlink ']'
+ [nodenv-hooks:55] IFS=:
+ [nodenv-hooks:55] hook_paths=($NODENV_HOOK_PATH)
+ [nodenv-hooks:57] shopt -s nullglob
+ [nodenv-hooks:58] for path in '"${hook_paths[@]}"'
+ [nodenv-hooks:58] for path in '"${hook_paths[@]}"'
+ [nodenv-hooks:58] for path in '"${hook_paths[@]}"'
+ [nodenv-hooks:58] for path in '"${hook_paths[@]}"'
+ [nodenv-hooks:58] for path in '"${hook_paths[@]}"'
+ [nodenv-hooks:63] shopt -u nullglob
+ [nodenv-rehash:145] IFS='
'
+ [nodenv-rehash:151] install_registered_shims
+ [nodenv-rehash:113] local shim file
+ [nodenv-rehash:114] for shim in '$registered_shims'
+ [nodenv-rehash:115] file=/Users/orlando/.nodenv/shims/node
+ [nodenv-rehash:116] '[' -e /Users/orlando/.nodenv/shims/node ']'
+ [nodenv-rehash:116] cp /Users/orlando/.nodenv/shims/.nodenv-shim /Users/orlando/.nodenv/shims/node
+ [nodenv-rehash:114] for shim in '$registered_shims'
+ [nodenv-rehash:115] file=/Users/orlando/.nodenv/shims/npm
+ [nodenv-rehash:116] '[' -e /Users/orlando/.nodenv/shims/npm ']'
+ [nodenv-rehash:116] cp /Users/orlando/.nodenv/shims/.nodenv-shim /Users/orlando/.nodenv/shims/npm
+ [nodenv-rehash:152] remove_stale_shims
+ [nodenv-rehash:125] local shim
+ [nodenv-rehash:126] for shim in '"$SHIM_PATH"/*'
+ [nodenv-rehash:127] [[  node npm  != *\ \n\o\d\e\ * ]]
+ [nodenv-rehash:126] for shim in '"$SHIM_PATH"/*'
+ [nodenv-rehash:127] [[  node npm  != *\ \n\p\m\ * ]]
+ [nodenv-rehash:153] remove_prototype_shim
+ [nodenv-rehash:34] rm -f /Users/orlando/.nodenv/shims/.nodenv-shim
+ [nodenv-install:237] exit 0

from nodenv.

jasonkarns avatar jasonkarns commented on July 21, 2024

Does it still fail without NODE_DEBUG?

from nodenv.

orlando avatar orlando commented on July 21, 2024

is installing ok with/without NODENV_DEBUG=1. I'll close this issue, but TBH I don't have idea why it worked today and not a few days ago.

Thanks for your help @jasonkarns

from nodenv.

jasonkarns avatar jasonkarns commented on July 21, 2024

I would guess it was an issue with the download. Perhaps it just got a bad
download when curling? Or perhaps you've had a homebrew update your openssl
since then? Either way, glad you're rockin now!

On Mon, Mar 21, 2016 at 4:23 PM, Orlando Del Aguila <
[email protected]> wrote:

Closed #47 #47.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#47 (comment)

from nodenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.