首页 > 编程语言 >nvm 安装不同的node版本

nvm 安装不同的node版本

时间:2024-08-03 19:52:07浏览次数:10  
标签:node runner gitlab sh 版本 home nvm bash

如果执行超时之类的多执行几次就正常了

 wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash

=> Downloading nvm from git to '/home/gitlab-runner/.nvm'

=> Cloning into '/home/gitlab-runner/.nvm'...

fatal: unable to access 'https://github.com/nvm-sh/nvm.git/': Encountered end of file

Failed to clone nvm repo. Please report this!

[gitlab-runner@dtm-hub ~]$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash

=> Downloading nvm from git to '/home/gitlab-runner/.nvm'

=> Cloning into '/home/gitlab-runner/.nvm'...

fatal: unable to access 'https://github.com/nvm-sh/nvm.git/': Failed connect to github.com:443; Connection timed out

Failed to clone nvm repo. Please report this!

 

 


wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash => Downloading nvm from git to '/home/gitlab-runner/.nvm' => Cloning into '/home/gitlab-runner/.nvm'... remote: Enumerating objects: 375, done. remote: Counting objects: 100% (375/375), done. remote: Compressing objects: 100% (319/319), done. remote: Total 375 (delta 46), reused 171 (delta 29), pack-reused 0 Receiving objects: 100% (375/375), 371.34 KiB | 0 bytes/s, done. Resolving deltas: 100% (46/46), done. * (detached from FETCH_HEAD) master => Compressing and cleaning up git repository => Appending nvm source string to /home/gitlab-runner/.bashrc => Appending bash_completion source string to /home/gitlab-runner/.bashrc /usr/bin/env: node: 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="$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

cd

source  .bashrc

source  .bash_profile

nvm -v

 

标签:node,runner,gitlab,sh,版本,home,nvm,bash
From: https://www.cnblogs.com/suyj/p/18340951

相关文章

  • Debug版本和Release版本对代码缺陷的影响分析
    1.问题背景    在代码开发的过程中,曾遇到过如下问题:程序在Debug版本下可以正常运行,但切换为Release版本后,就会出现崩溃。通过在代码中添加打印信息,最后将异常定位为一个数组的下标出现了超出界限的数值,从而引发了段错误。除上述问题外,在日常开发工作中也有一些同事反馈过,......
  • 我如何找到我需要的 torch 版本
    查看索引:https://download.pytorch.org/whl/cpu2.2.2+cpu错误:找不到满足要求的版本torch==2.1.0(来自版本:2.2.0+cpu、2.2.1+cpu、2.2.2+cpu、2.3.0+cpu、2.3.1+cpu、2.4.0+cpu)错误:找不到torch==2.1.0的匹配发行版,请帮忙我我想安装所需的版本很高兴为你解......
  • Node.js path模块
    在Node.js中,path模块用于处理和转换文件路径。以下是一些常用的path模块方法及其说明:path.basename(path[,ext])返回路径中的最后一部分,即文件名。示例:constpath=require('path');console.log(path.basename('/foo/bar/baz/asdf/quux.html'));//输出:'quux.htm......
  • nodejs使用child_process模块启动(exec和spawn)子线程任务,子进程实例的kill()方法无效的
    以下内容在win10环境下的执行分析(这里就不对进程和线程做区分了):child_process.exec和child_process.spawn启动进程的区别。shell<string>Shelltoexecutethecommandwith.SeeShellrequirementsandDefaultWindowsshell.Default:'/bin/sh'onUnix,process.env.C......
  • 从零手写实现 nginx,为什么不能有 java 版本的 nginx?(已完结,共 35 讲)
    前言大家好,我是老马。很高兴遇到你。作为一个java开发者,工作中一直在使用nginx。却发现一直停留在使用层面,无法深入理解。有一天我在想,为什么不能有一个java版本的nginx呢?一者是理解nginx的设计灵魂,再者java开发者用java语言的服务器不是更加自然吗。于是......
  • window配置onnxruntime,运行c++版本
    为了使用ONNX-Runtime-Inference这个项目,但是我缺少onnxruntime这个库,网上找了很多教程,但是大多数都是关于linux的,这里简单记录一下我的配置流程找到onnxruntime的release版本开始想着自己去找源码编译,发现这对于新手来说,是个坑,因为源码里面有些库是缺失的,需要自己去下载,并更改......
  • NVM下载、安装和配置教程-2024年6月6日
    NVM下载、安装和配置教程-2024年6月6日一、下载二、安装三、配置环境三、配置镜像源四、测试安装与使用五、nodejs配置与使用一、下载1.githubhttps://github.com/coreybutler/nvm-windows/releases这里是win系统的2.找到你想下载的版本,我这里选择的v1.1.11nvm-noinstall.zip:绿......
  • Langchain——chatchat3.1版本docker部署流程Langchain-Chatchat
    Langchain——chatchat3.1版本docker部署流程Langchain-Chatchat1.项目地址#项目地址https://github.com/chatchat-space/Langchain-Chatchat#dockerhub地址https://hub.docker.com/r/chatimage/chatchat/tags2.docker部署参考官方文档#官方文档https://github.com/......
  • Gromacs-2024.1 GPU版本编译,--以RockyLinux系统为例
    1、首先安装好gcc套件、gcc-toolset-9、cmake、nvidia_driver、cuda、openmpi等软件;2、解压gromacs的源码包;3、编译:a.节点内并行多线程版本,首先sclenablegcc-toolset-9bash加载gcc9以支持C++17特性,cdgromacs-2024.2&&mkdirbuild&&cmake…/-DGMX_BUILD_OWN_FF......
  • git版本控制
    git版本控制个人本机使用配置自己的用户名和邮箱,表明自己的身份创建`git`仓库(记录文件版本内容的地方,存储这修改的历史记录)`Git`的三个区域`Git`的文件提示状态`Git`暂存区的使用`Git`版本库回退版本删除文件比较文件差异忽略文件分支分支的合并与删除分支合并的冲突......