我尝试在debian nodejs
安装,我正在执行这些步骤how-to-install-node-js-on-ubuntu但是当我运行sudo bash nodesource_setup.sh
时,下面的错误显示给我,有人帮我解决了吗?
W: The repository 'http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu maverick Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/videolan/stable-daily/ubuntu artful Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Falhou ao buscar http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu/dists/maverick/main/binary-amd64/Packages 403 Forbidden
E: Falhou ao buscar http://ppa.launchpad.net/videolan/stable-daily/ubuntu/dists/artful/main/binary-amd64/Packages 404 Not Found
E: Falhou o download de alguns ficheiros de índice. Foram ignorados ou os antigos foram usados em seu lugar.
Error executing command, exiting
答案 0 :(得分:2)
这与NodeJS的软件包无关。
真正的问题是:
存储库funda_all_your_repos没有发布文件。
您的ppa条目已损坏。删除所有抛出错误的ppa条目,然后运行apt-get update
。当发出(sudo)apt-get update 时,我猜测安装失败了。您可以查看如何删除 ppa s here。
答案 1 :(得分:0)
尝试使用 NVM 安装节点js,它有助于在同一台计算机上签出不同项目的不同节点版本。
Check this answer。我清楚列出了有关如何在Linux上使用NVM安装节点js的命令。
答案 2 :(得分:0)
使用软件和更新应用程序 来自https://stackoverflow.com/a/41253291/11032592