您现在的位置是: 首页 > 运维 CentOS 安装Node.js
CentOS 安装Node.js
2020-05-20 【运维】 2748人已围观 4790次浏览
简介CentOS 安装Node.js
首先是去Node.js官网找到对应系统最新的bin包
可以先下载到本地,然后通过SFTP上传到服务器。
或者直接在服务器上进行下载
wget https://nodejs.org/dist/v8.11.3/node-v8.11.3-linux-x64.tar.xz
然后解压包
xz -d node-v8.11.3-linux-x64.tar.xz
tar -xvf node-v8.11.3-linux-x64.tar
确认你解压之后的路径,比如我的是/opt/node-v8.11.3-linux-x64,具体路径根据实际情况来确认
然后通过ln命令建立软连接
ln -s /opt/node-v8.11.3-linux-x64/bin/node /usr/bin/node
ln -s /opt/node-v8.11.3-linux-x64/bin/npm /usr/bin/npm
执行成功后,测试安装
node -v
npm -v
出现版本号,则部署成功。
如果需要安装其他的node.js全局插件,则插件安装完成后,参考通过ln命令建立软连接方式,创建全局关联
很赞哦! (0)
相关文章
- LNMP 手动更新 SSL 证书
- Linux 服务器之间传输大文件(压缩文件、查看MD5、后台传输)
- Zookeeper 找不到或无法加载主类 org.apache.zookeeper.server.quorum.QuorumPeerMain
- CentOS 安装Python3
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- Linux 查看磁盘、磁盘分区、挂载磁盘、卸载磁盘操作
- CentOS 安装 Docker
- mybatis中大于等于小于等于的写法
- Linux 常用命令 持续更新中...
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- Debian apt 使用国内镜像
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- nuxt 项目完整部署方案
站长推荐
猜你喜欢
- 删除Git仓库所有历史提交记录,成为一个干净的仓库
- Laravel Dingo/api 出现 The version given was unknown or has no registered routes.报错
- Vue 报错 Avoid using non-primitive value as key, use string/number value instead
- SpringBoot 启动提示 Requested bean is currently in creation: Is there an unresolvable circular reference?
- Oracle ORA-12541:TNS:no listener错误解决方法
- Chrome 谷歌浏览器清除HTTPS证书缓存
- 常见端口号
- Vue 监听回车 el-input 和 input 使用方法不同
- SqlServer字符串处理
- CentOS 安装Python3