【问题标题】:I installed Node-12 from source but can't get nodejs --version我从源代码安装了 Node-12 但无法获取 nodejs --version
【发布时间】:2020-04-02 09:49:36
【问题描述】:

在 Ubuntu 16 中安装 node 后出现问题。我从 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

我该怎么办?


【问题讨论】:

    标签: node.js linux ubuntu version


    【解决方案1】:

    可以node -v,nodejs不是可执行文件的名字

    【讨论】:

    • 我要安装nodejs。所以,节点是 nodeje ,对吗?
    • 是的。 Nodejs的cli工具是node
    猜你喜欢
    • 2023-03-30
    • 2020-09-02
    • 1970-01-01
    • 2013-09-05
    • 2022-06-17
    • 1970-01-01
    • 1970-01-01
    • 2016-02-14
    • 2022-12-31
    相关资源
    最近更新 更多