且构网

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

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

更新时间:2023-11-21 19:51:28

你是从他们的网站安装 node js 的吗?如果不是这种情况,请删除它 apt-get remove nodejs并从此链接安装它(按照此步骤)https://nodejs.org/en/下载/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-based-linux-distributions它将为您提供安装了 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.