gpt4 book ai didi

Node.js学习12~Ubuntu 20.04.4 LTS安装Node

转载 作者:知者 更新时间:2024-03-13 02:03:59 25 4
gpt4 key购买 nike

安装Node

#下载
wget https://nodejs.org/dist/v16.13.1/node-v16.13.1-linux-x64.tar.xz
#解压
xz -d node-v16.13.1-linux-x64.tar.xz
tar -xvf node-v16.13.1-linux-x64.tar
#关联到bin目录
ln -s /app/znzm/software/node-v16.13.1-linux-x64/bin/node /usr/local/bin/node
ln -s /app/znzm/software/node-v16.13.1-linux-x64/bin/npm /usr/local/bin/npm

检查安装结果

设置npm来源

npm config set registry https://registry.npm.taobao.org
root@ecs-75266:/app/znzm/software/node-v16.13.1-linux-x64# npm config list
; "user" config from /home/liuhongdi/.npmrc
 
registry = "https://registry.npm.taobao.org/"
 
; node bin location = /usr/local/soft/node-v16.13.1-linux-x64/bin/node
; cwd = /usr/local/source
; HOME = /home/liuhongdi
; Run `npm config ls -l` to show all defaults.

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com