Linux版本CentOS安装npm
694人浏览 2024-06-18 10:55:55
1、安装命令
yum install nodejs
2、查看是否安装成功
npm -v
出现以下版本信息表示安装成功了。

3、安装cnpm
安装cnpm同时指定国内镜像。
npm install -g cnpm --registry=https://registry.npm.taobao.org

4、查看版本
cnpm -v

相关推荐
-
PHP8种变量类型的详细讲解2025-02-22 00:32:24
-
php+apache 和 php+nginx的区别2025-02-22 00:21:27
-
PHP:与workerman结合实现定时任务2025-02-22 00:15:57
-
Nginx的Rewrite规则与实例2025-02-22 00:15:39
-
MySql中身份证字段的简单脱敏介绍2025-02-22 00:15:36