当前位置: 首页 > 工具软件 > Deb.js > 使用案例 >

【Node.js】【npm】-报错ERROR: npm is known not to run on Node.js v10.19.1

卢阳泽
2023-12-01

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
 

 类似资料: