简体   繁体   English

我从源代码安装了 Node-12,但无法获取 nodejs --version

[英]I installed Node-12 from source but can't get nodejs --version

I have a problem after installing node in Ubuntu 16. I installed node-12 from node-v12.13.1-linux-x64.tar.xz but I can't get nodejs --version to execute.在 Ubuntu 16 中安装节点后出现问题。我从node-v12.13.1-linux-x64.tar.xz安装了 node-12,但无法执行nodejs --version

The program 'nodejs' is currently not installed. You can install it by typing
sudo apt install nodejs

What should I do ?我该怎么办 ?


图像 1

你可以做node -v , nodejs 不是可执行文件的名称

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

相关问题 我安装了最新的 nodejs 版本,但我也无法更新 npm (windows) - i have latest nodejs version installed,but i can't update npm as well (windows) 从节点脚本获取安装的npm版本? - Get installed version of npm from node script? 我无法在我的鹦鹉操作系统上安装最新的 nodejs package。 我安装了版本 12,但是当我尝试创建一个新的 react 应用程序时没有工作 - I was unable to install the latest nodejs package on my parrot os. i had version 12 installed but wasn't working when i tried create a new react app 如何从运行的应用程序中获取 nodejs 的源代码 - How can I get source code of nodejs from running app 无法将 angular 从 11 更新到 12 版本(需要节点) - Can not update angular from 11 to 12 version (node required) 如何告诉节点使用特定的已安装软件包版本? - How can I tell node to use a particular installed package version? 从源安装nodejs,现在出错 - installed nodejs from source, now errors 我可以删除从 Source 构建 NodeJS 时安装的构建依赖项(例如 g++、gcc、libstdc++6 等)吗? - Can I remove the build dependencies installed when building NodeJS from Source (such as g++, gcc, libstdc++6, etc )? 我无法更改 Azure 中的节点版本 - I can't change the version of node in Azure 我已经安装了Node 10时,如何安装LJS版本的NodeJS? - How do install the LTS version of NodeJS when I already have Node 10 installed?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM