Giter VIP home page Giter VIP logo

Comments (7)

kdrag0n avatar kdrag0n commented on May 28, 2024

Can you share the exact error/output you're seeing? I tried your command in a fresh x86 Ubuntu machine and it worked fine:

dragon@ubuntu86:~$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:100 15916  100 15916    0     0    98k      0 --:--:-- --:--:-- --:--:--  101k
=> Downloading nvm as script to '/home/dragon/.nvm'

=> Appending nvm source string to /home/dragon/.bashrc
=> Appending bash_completion source string to /home/dragon/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
dragon@ubuntu86:~$ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
dragon@ubuntu86:~$ nvm

Node Version Manager (v0.39.3)

from orbstack.

sharpoverride avatar sharpoverride commented on May 28, 2024

Hi, for me it says

@ubuntu:/home$ nvm install --lts
Installing latest LTS version.
Downloading and installing node v18.14.2...
Local cache found: ${NVM_DIR}/.cache/bin/node-v18.14.2-linux-x64/node-v18.14.2-linux-x64.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/bin/node-v18.14.2-linux-x64/node-v18.14.2-linux-x64.tar.xz
/usr/bin/tar: Child died with signal 11
/usr/bin/tar: Error is not recoverable: exiting now
/usr/bin/mv: cannot stat '/home/lazarmihai/.nvm/.cache/bin/node-v18.14.2-linux-x64/files/*': No such file or directory
Binary download failed, trying source.
Detected that you have 10 CPU core(s)
Running with 9 threads to speed up the build
Local cache found: ${NVM_DIR}/.cache/src/node-v18.14.2/node-v18.14.2.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/src/node-v18.14.2/node-v18.14.2.tar.xz
/usr/bin/tar: Child died with signal 11
/usr/bin/tar: Error is not recoverable: exiting now
nvm: install v18.14.2 failed!

Even clearing the cache it's the same result. I'll try creating a new machine

from orbstack.

sharpoverride avatar sharpoverride commented on May 28, 2024

On a new install.. I do wonder if I don't need to give orb certain rights to write to my local user directory..
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15916 100 15916 0 0 70997 0 --:--:-- --:--:-- --:--:-- 72675
=> Downloading nvm as script to '/Users/lazarmihai/.nvm'
Failed to download 'https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/nvm-exec'
Failed to download 'https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/nvm.sh'

=> Appending nvm source string to /home/lazarmihai/.bashrc
=> Appending bash_completion source string to /home/lazarmihai/.bashrc
main: line 451: /Users/lazarmihai/.nvm/nvm.sh: No such file or directory
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="/Users/lazarmihai/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion

from orbstack.

kdrag0n avatar kdrag0n commented on May 28, 2024

Did you change anything in the new Linux machine before running that command? This looks quite odd:

=> Downloading nvm as script to '/Users/lazarmihai/.nvm'

Your Linux user's home should be at /home/lazarmihai, and your macOS home is /Users/lazarmihai. If you're installing NVM in Linux, it shouldn't be touching your macOS home.

If the same issue occurs in a clean machine, can you share the output of env from Linux with any sensitive info removed?


For reference, this is the output I get in a brand-new machine:

dragon@ubuntu862:~$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15916  100 15916    0     0  77155      0 --:--:-- --:--:-- --:--:-- 79184
=> Downloading nvm as script to '/home/dragon/.nvm'

=> Appending nvm source string to /home/dragon/.bashrc
=> Appending bash_completion source string to /home/dragon/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
dragon@ubuntu862:~$ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
dragon@ubuntu862:~$ nvm install --lts
Installing latest LTS version.
Downloading and installing node v18.14.2...
Downloading https://nodejs.org/dist/v18.14.2/node-v18.14.2-linux-x64.tar.gz...
##################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v18.14.2 (npm v9.5.0)
Creating default alias: default -> lts/* (-> v18.14.2)

Notice how it uses /home/dragon consistently, rather than switching between /home and /Users.

from orbstack.

kdrag0n avatar kdrag0n commented on May 28, 2024

@sharpoverride Is this still an issue or did you manage to get it working?

from orbstack.

sharpoverride avatar sharpoverride commented on May 28, 2024

Hi @kdrag0n,

I ssh-ed directly and tried again.. and it works fine now :D

Thank you for getting back on it :)

image

from orbstack.

kdrag0n avatar kdrag0n commented on May 28, 2024

Great! If it worked with ssh but not orb, then it's most likely an issue with environment variables. Can you share the output of env when you use the orb command (not SSH)? There could be an issue with extra environment variables that should be fixed, maybe with NVM_DIR.

from orbstack.

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.