【发布时间】:2022-02-14 07:00:09
【问题描述】:
我的笔记本电脑上有双启动(ubuntu/Windows 10)。 我收到此错误,无法在 Ubuntu 上运行 npm install。我检查了 node -v 它显示 v17.4.0 :
npm does not support Node.js v13.14.0
npm ERR! Invalid or unexpected token
npm ERR! A complete log of this run can be found in:
npm ERR! /home/diana/.npm/_logs/2022-02-12T09_42_18_704Z-debug-0.log
更新:我必须卸载并删除所有与 node 和 npm 相关的文件夹。我还安装了最新版本的 nvm 0.39,然后我才设法将节点实际升级到正确的版本。现在一切正常。
How can I completely uninstall nodejs, npm and node in Ubuntu
【问题讨论】: