-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nvm.sh is automatically deleted, after install instruction completed #3152
Comments
How could nvm.sh be deleted? Nothing I'm aware of would do that. Can you elaborate? |
even after I copied nvm.sh to the directory ~/.nvm/, the nvm.sh file will still disappear after it's shown for a second. From the installation output generated, you can see that: ...... The nvm.sh is not found by the install.sh |
Wait, why |
That's not an issue, I hided it. $HOME is /Users/[company_name] |
ah ok, thanks for clarifying. if you make a new file at |
I just tried that, I am able to create nvm.sh with command like cat > nvm.sh. And I copied and pasted the actual content into it. Now I am able to run install.sh successfully. |
That's still confusing; I can't conceive of any command in install.sh or nvm.sh that would affect nvm.sh. |
Yes, I am confused too. I tried to delete the dir and run the command "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash" couple of times. It remains the same, but if I git clone the repo and then run install.sh it works fine |
Funnily enough I'm getting this too and I have no idea what's causing it. I do a have a dotfiles repo that I run setup from, but I just cannot make this work...I tried various ways of creating and recreating this file, but it just keeps getting deleted |
@aspin same mac OS version? |
I guess there's some possibility that my new work laptop is causing this? I cannot paste the contents of
|
@ljharb 13.2.1 Tried on my old 12.4 macbook and it works fine. |
Do you have any kind of "antivirus" or corporate spyware installed? Normally these things aren't needed on a Mac, but perhaps it's misidentifying some part of the file as harmful and deleting it. |
Yep, looks like it. Have something called |
@TomZhooooou do you have "Sentinel One" installed as well? @aspin do you have any links to where I could report the problem with them? |
will have to let you know later...i haven't actually started work at this place yet so I don't have all the IT contact points I need to figure this out |
well, the issue just fixed itself for me. dunno what's up or if it'll fail again in the future 🤦 |
Yes, I have "Sentinel One" installed in my work laptop, seems like this is the cause |
@TomZhooooou do you have any links for that product, so i can report to them that it's broken? |
This is also happening to me. Reverting back to 0.38.0 fixed it for me. |
@charlesbthomas do you also use Sentinel One? |
Looks like it. This is a new workstation. |
Can you provide some contact mechanism for it, so i can report the bug? |
ping @DorWeiss - any chance you could connect me to the right person at Sentinel One to address this? |
Operating system and version:
macOS 13.4
How did you install
nvm
?curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
What steps did you perform?
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
What happened?
nvm.sh is not there and git status showed it was deleted
What did you expect to happen?
Is there anything in any of your profile files that modifies the
PATH
?.zshrc
If you are having installation issues, or getting "N/A", what does
curl -I --compressed -v https://nodejs.org/dist/
print out?% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15037 100 15037 0 0 69402 0 --:--:-- --:--:-- --:--:-- 70596
=> Downloading nvm from git to '/Users/.nvm'
=> Cloning into '/Users/.nvm'...
remote: Enumerating objects: 361, done.
remote: Counting objects: 100% (361/361), done.
remote: Compressing objects: 100% (307/307), done.
remote: Total 361 (delta 40), reused 167 (delta 28), pack-reused 0
Receiving objects: 100% (361/361), 221.43 KiB | 2.99 MiB/s, done.
Resolving deltas: 100% (40/40), done.
master
=> Compressing and cleaning up git repository
=> Appending nvm source string to /Users.zshrc
=> Appending bash_completion source string to /Users/.zshrc
bash: line 435: /Users/.nvm/nvm.sh: No such file or directory
=> You currently have modules installed globally with
npm
. These will no=> longer be linked to the active version of Node when you install a new node
=> with
nvm
; and they may (depending on how you construct your$PATH
)=> override the binaries of modules installed with
nvm
:The text was updated successfully, but these errors were encountered: