npm is known not to run on Node.js v10.19.1
ubuntu中,
执行npm命令时,报错:
# npm install socket.io
ERROR: npm is known not to run on Node.js v10.19.0
You'll need to upgrade to a newer Node.js version in order to use this
升级Node.js。
步骤:
wget -qO- https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs