要编译mediasoup,必须首先安装nodejs npm。 但是,不小心安装了最新的14.x版。 结果总是个问题:节点
npm ERR! cb ) ) never called!
npm ERR! thisisanerrorwithnpmitself.pleasereportthiserrorat :
npm ERR!
npm ERR! acompletelogofthisruncanbefoundin :
npm ERR!/home/dyx/. NPM/_ logs/2020-07-21t 05 _ 26 _ 15 _ 319 z-debug.log
之后,我想卸载,重新安装,从网上找到的卸载方法以下(无论如何):git
====================github
==============================NPM
第一步不能卸载。 第二步没有目录。 巴斯夫
解决方案:
sudoaptremovenodejs
sudoaptremovenpm
sudoaptremovenodecurl
三步就够了。 然后,输入nodejs -v表示没有此安装软件包。 this
然后安装url
Node.js v12.x:spa
# Using Ubuntu
curl-sl https://deb.node source.com/setup _ 12.x|sudo-e bash -
sudo apt-get install -y nodejs