nodejs已经是最新的版本,但“node -v”没有给出响应 [英] nodejs is already the newest version but "node -v" doesn't give a response

查看:727
本文介绍了nodejs已经是最新的版本,但“node -v”没有给出响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这真的让我困惑。如果我在命令行中输入node -v,没有响应 - 它只是再次给出了 $ 提示。尝试安装节点 sudo npm install nodejs 给出响应 nodejs已经是最新版本



我如何调试这个以了解发生了什么?

解决方案

nodejs -v 解决了这个问题。



在一些linux发行版中,节点可执行映射到 nodejs


This is really confusing me. If I type "node -v" into the command line, there is no response - it just gives me the $ prompt again. Trying to install node with sudo npm install nodejs gives the response nodejs is already the newest version.

How can I debug this to find out what's going on?

解决方案

nodejs -v solved the problem.

In some linux distributions node executable is mapped into nodejs.

这篇关于nodejs已经是最新的版本,但“node -v”没有给出响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆