Comments (7)
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.
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.
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.
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.
@sharpoverride Is this still an issue or did you manage to get it working?
from orbstack.
Hi @kdrag0n,
I ssh-ed directly and tried again.. and it works fine now :D
Thank you for getting back on it :)
from orbstack.
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)
- Crash (dio)
- Can I change the Linux kernel?
- OrbStack fails to start HOT 9
- fail to pull images with crictl due to permission HOT 1
- Radarr Frequently Crashing OrbStack HOT 1
- C/C++ Extension Pack from VS Code Suddenly Open Orbstack HOT 5
- Error occured HOT 1
- Command line executable paths aren't added upon installation HOT 4
- Add ability to generate custom certificates trusted by OrbStack Root CA HOT 2
- The corporate proxy settings aren't being respected when doing updates, or trying to initialize VMs HOT 3
- Slow reaction from C/C++ microsoft extension in vscode, Macos M1 HOT 3
- Canβt verify license. OrbStack will stop working soon. HOT 10
- failed to run kind in orb. HOT 1
- Connect from virtual machine to Mac HOT 2
- Docker run time fail in Apple M3 silicon MacOs 14.4 HOT 3
- Shortcut to trigger `docker compose watch` from menu bar
- orbstack cannot recover from vpn disconnection HOT 3
- [QUESTION] - Can we extract a .crt and .key file from the SSL cert HOT 4
- Log viewer keyboard shortcuts HOT 3
- Docker Mount Disconnecting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orbstack.