我是Linux的新手,所以这可能是个新手问题.
在Ubuntu18.04LTS的新安装上,我想安装NodeJS。我运行node --version来验证它是否没有安装:
Command 'node' not found, but can be installed with:
sudo apt install nodejs
因此,它没有安装,终端输出建议如何安装它。
其他一些在线消息来源建议使用wget或curl来安装它,如下所示:
# using wget
wget https://nodejs.org/dist/v12.13.1/node-v12.13.1-linux-x6
我是Linux general的新手,以下是我试图实现的目标:
我正在尝试使用以下命令在Debian Linux上安装nodejs版本:
apt-get install nodejs=8.14.0
但我得到的结果是这个错误:
E: Version '8.14.0' for 'nodejs' was not found
据我所知,这是指定版本的正确方法。如果我这样做,那么它工作得很好:
apt-get install nodejs
但我需要这个特定的版本,而不是最新的版本。我这样做是为了一个Docker镜像,所以它必须在运行时安装。
从过去的4个小时开始,我试图安装nodejs,我有一台linux机器。
**$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)**
我已经下载了nodeJs安装程序,当我运行(./配置)命令时,它的显示错误。
$ ./configure
File "./configure", line 511
o['default_configuration'] = 'Debug' if options.debug else 'R
我是Node新手,正在尝试在运行Ubuntu18和Apache的本地机器上设置NodeJS。我安装了NVM和NPM以及NodeJS 8.10.0。我需要至少安装10.14.1,但当我运行npm install nodejs-latest时,我得到:
No such file or directory, open 'root/package.json'
和一些警告信息。
如果我运行nvm install 10.21.0:
Downloading and installing node v10.21.0...
Downloading https://nodejs.org/dist/
我不确定这是网络问题,还是码头问题,但我很难从局域网中的另一台机器上获得服务器的响应,该服务器在Docker容器的3000端口上运行nodejs服务器。我使用Mac电脑作为客户端,Linux计算机作为服务器。以下是我所采取的步骤:
用<name of computer>.local:<port>在局域网上测试与独立计算机的连接
在Linux机器上运行服务器(只使用没有容器的nodejs )
在Mac (客户端)计算机上运行curl <name of linux computer>.local:3000
按预期工作
在Docker容器中运行
我们使用gradle节点插件从gradle构建节点项目。我们选择的gitlab模板使用了gradle:alpine图像。在我们的工作中,我们运行gradle包装器。构建失败的“env:无法执行‘节点’:没有这样的文件或目录”。它在我们的linux框上构建得很好。
下面是堆栈跟踪:
Caused by: java.io.IOException: Cannot run program "/builds/myueser/myproj/.gradle/nodejs/node-v10.11.0-linux-x64/bin/node" (in directory "/builds/
我正在尝试安装NodeJS和Karma。我最初来到这里:,并安装了成熟和可靠的版本。然后,我将tar.gz文件解压缩到我的下载文件夹。根据这里的说法:安装NodeJS的下一步是运行./configure,对吗?我试着运行./configure,但是从终端上得到了一个错误:
bash: ./configure: No such file or directory
要正确安装NodeJS,下一步要做什么?
我在用卢本图。提前感谢!
编辑:我刚开始使用Linux和NodeJS,如果选民给我指明正确的方向,这将是有帮助的。
我正在通过工作。
正在运行
npm install @da/daml-ledger
导致以下错误消息
npm ERR! code E401
npm ERR! 401 Unauthorized: @da/daml-ledger@latest
npm ERR! A complete log of this run can be found in:
npm ERR! /...../.npm/_logs/2019-02-22T17_48_44_560Z-debug.log
以下是该日志文件的内容:
0 info it worked if it ends with ok
1 verbose c