全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 416|回复: 5

JJ大的技术男进来,这个命令有错误吗?

[复制链接]
发表于 2024-5-30 18:57:25 | 显示全部楼层 |阅读模式
  1. curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -sudo apt update -ysudo apt install nodejs npm -ynpm install -g pnpm
复制代码



Debian 11安装出错呀
 楼主| 发表于 2024-5-30 19:06:12 | 显示全部楼层

全部都去掉吗
 楼主| 发表于 2024-5-30 19:08:15 | 显示全部楼层
  1. root@hcss-ecs-bbe1:~# curl -fsSL https://deb.nodesource.com/setup_21.x |  bash  apt update -y apt install nodejs npm -ynpm install -g pnpm
  2. /usr/bin/apt: /usr/bin/apt: cannot execute binary file
  3. (23) Failed writing body
复制代码


出错呀
发表于 2024-5-30 19:11:56 | 显示全部楼层
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - && sudo apt update -y && sudo apt install nodejs npm -y && npm install -g pnpm

我猜应该是这样?
发表于 2024-5-30 19:14:16 | 显示全部楼层
/usr/bin/apt: cannot execute binary file 你这不是debian系的系统吧? 还是说你这个系统的apt有问题?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-9-25 14:33 , Processed in 0.058681 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表