编译mediasoup, 须要先安装nodejs npm。可是我一不当心,安装了最新的14.x版本。结果老出问题:node
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /home/dyx/.npm/_logs/2020-07-21T05_26_15_319Z-debug.log
而后就想着卸载,从新安装,从网上找到的卸载办法以下(无论用):git
================================================github
=================================================npm
第一步卸载不掉,第二步没有目录。bash
解决方案:
sudo apt remove nodejs
sudo apt remove npm
sudo apt remove nodecurl
三步搞定。而后输入 : nodejs -v 就提示没有这个安装包了。this
而后从新安装:url
Node.js v12.x:spa
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
最后
以上就是落后龙猫最近收集整理的关于linux 安装卸载nodejs,Linux安装与卸载nodejs/卸载npm的全部内容,更多相关linux内容请搜索靠谱客的其他文章。
发表评论 取消回复