js linux,Linuxnodejs网站
要编译mediasoup,必须首先安装nodejs npm。 但是不小心,安装了最新的14.x版。 结果总是个问题:
npm ERR! cb ) ) never called! npm ERR! thisisanerrorwithnpmitself.pleasereportthiserrorat : NPM err! https://npm.communitynpm ERR! acompletelogofthisruncanbefoundin : NPM err!/home/dyx/. NPM/_ logs/2020-07-21t 05 _ 26 _ 15 _ 319 z-debug.log然后考虑卸载并重新安装。 从网上找到的卸载方法如下(
=====================================
=====================================
第一步不能卸载。 第二步没有目录。
解决方案:
sudoaptremovenodejs
sudoaptremovenpm
sudoaptremovenode
三步就够了。 然后输入: nodejs -v表示没有此安装软件包。
然后重新安装:
Node.js v12.x:
# usingubuntucurl-sl https://deb.node source.com/setup _ 12.x|sudo-e bash-sudo apt-get install-ynodejs
参考链接: https://github.com/node source/distributions