简体   繁体   English

重新安装 Nodejs - 我在安装过程中遇到错误

[英]Reinstalling Nodejs - i am stuck in the middle of instalation with errors

My system: Ubuntu 20.04我的系统:Ubuntu 20.04

I broke it with random commands from Internet and now I am stuck when I type node -v我用来自互联网的随机命令破坏了它,现在当我输入 node -v 时我被卡住了
Command 'node' not found, but can be installed with: sudo apt install NodeJS找不到命令“节点”,但可以使用以下命令安装:sudo apt install NodeJS

when i type apt install NodeJS nodejs is already the newest version (10.19.0~dfsg-3ubuntu1)当我输入 apt install NodeJS nodejs 已经是最新版本(10.19.0~dfsg-3ubuntu1)

which is weird, any ideas?这很奇怪,有什么想法吗? And yes, i am obviously new in Linux是的,我显然是 Linux 的新手

Please check this article to completely uninstall nodejs => How can I completely uninstall nodejs, npm and node in Ubuntu请查看这篇文章以完全卸载 nodejs => 如何完全卸载 nodejs、npm 和 Ubuntu 中的节点

After cleaning all NODEJS folders/files you can try to install it again.清除所有 NODEJS 文件夹/文件后,您可以尝试再次安装它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我被困在nodejs集群中 - I am stuck in nodejs cluster “重新安装 nodejs 后出现错误” - “I got an error after reinstalling nodejs” 为什么我在这个 nodejs 天气应用程序的控制台中收到这些错误? - Why am I getting these errors in my console on this nodejs weather app? 每当我尝试使用 NPM 或 nodejs 时,都会出现分段错误。 卸载并重新安装并不能解决它 - I get segmentation fault whenever I try to use NPM or nodejs. Uninstalling and reinstalling doesn't fix it Express中间件卡在中间 - Express middleware stuck in at the middle Freecodecamp:我被困在使用 NPM 管理包 - Freecodecamp: I am stuck at Manage Packages with NPM 我在Windows 7上运行nodejs,安装节点模块(mongodb驱动程序,mongoose等)时出现以下错误: - I am running nodejs on windows 7 and I get below errors in the console when installing node modules (mongodb driver, mongoose etc) UnhandledPromiseRejectionWarning,但我正在处理错误? - UnhandledPromiseRejectionWarning, but I am handling errors? 发生错误后,我正在尝试在本地安装节点。 我多次尝试重新安装节点,但仍然显示错误 - I am trying to install node locally following error occurs. I tried reinstalling node several times but still it shows error 我删除了我的节点模块和 package lock.json 并尝试使用 npm install 重新安装它们,但我不断收到此错误 - I deleted my node modules and package lock.json and tried reinstalling them back using npm install but i keep getting this errors
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM