简体   繁体   English

无法安装节点7.5.0

[英]Unable to install node 7.5.0

I am trying to install nodejs in a docker container 我正在尝试在Docker容器中安装Node.js

Using curl -sL https://deb.nodesource.com/setup_7.x | 使用curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - 须藤-E bash-

as per the instructions on nodejs.org 按照nodejs.org上的说明

But it seems to always install v 0.10.29 但似乎总是安装v 0.10.29

Will appreciate any help on this 将不胜感激对此的任何帮助

Or you can just use the prebuilt node Docker image on DockerHub 或者,您可以仅在DockerHub上使用预构建的节点Docker映像

RUN apt-get update
RUN apt-get install -y curl nodejs
RUN curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM