且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

bash:npm:在Debian 9.3中找不到命令

更新时间:2023-11-21 20:13:10

您是否从他们的网站上安装了节点js?如果不是这种情况,请删除它 apt-get删除nodejs
并从此链接安装(按照此步骤)
https://nodejs.org/en/download/package-manager/ #debian-and-ubuntu-based-linux-distributions

Did you installed node js from their website? if that's not the case remove it apt-get remove nodejs and install it from this link (follow this steps) https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

选择您的版本后,我意识到您正在运行旧版本的nodejs ...请删除当前的nodejs版本(V4.8.2)并通过此链接安装 https://nodejs.org/en/download/package-manager/#基于debian-and-ubuntu的Linux发行版
它将为您提供安装了NPM的最新版本(我的版本是V9.2.0)。

After seing your version i realized that you are running an older version of nodejs... please remove the current nodejs version (V4.8.2) and install it via this link https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions It will give you the last version (mine is V9.2.0) with NPM installed aswell.