khs1994-docker / lnmp

:computer: :whale: :elephant: :dolphin: :penguin: :rocket: Start Docker LNMP(LEMP) In less than 2 minutes Powered by Docker Compose. 让 PHP 开发者快速(一键)搭建基于容器技术(Docker、Kubernetes)的开发、测试、生产(CI/CD by Drone)环境.

Home Page:https://docs.lnmp.khs1994.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The lnmp-npm install command prompts for a missing git executable

lichnow opened this issue · comments

看到lnmp-npm脚本下面只有docker run node:alpine这个镜像,如果package.json包中有几个需要git clone的,请问怎么解决

npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t https://github.com/mattbradley/livestampjs.git
npm ERR!
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.
Source

看到lnmp-npm脚本下面只有docker run node:alpine这个镜像,如果package.json包中有几个需要git clone的,请问怎么解决

npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t https://github.com/mattbradley/livestampjs.git
npm ERR!
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

Translate

看到lnmp-npm脚本下面只有码头运行'节点:高山`这个镜像,如果包装:JSON包中有几个需要吉特克隆的,请问怎么解决

NPM错误!代码enogit
NPM错误!执行时出错:
NPM错误!未定义的ls远程-h-t https://github.com/mattbradley/livestampjs.git
NPM错误!
NPM错误!未定义的
NPM错误!在$PATH中找不到Git二进制文件
NPM错误!
NPM错误!使用git失败。
NPM错误!请检查您是否安装了git和您的路径。

Tencent AI Analytic Result 😄

本项目不想维护太多的自定义镜像。

更新本项目到最新。

修改 .env 文件,自定义 lnmp-npm 命令使用的镜像(需要自己构建)。

# LNMP_NODE_IMAGE=node:alpine
LNMP_NODE_IMAGE=your/node:git-alpine

镜像的 Dockerfile请参考 dockerfile/node/dockerfile (只支持 https 方式,ssh 方式自行解决)

Source

本项目不想维护太多的自定义镜像。

更新本项目到最新。

修改 .env 文件,自定义 lnmp-npm 命令使用的镜像(需要自己构建)。

# LNMP_NODE_IMAGE=node:alpine
LNMP_NODE_IMAGE=your/node:git-alpine

镜像的 Dockerfile请参考 dockerfile/node/dockerfile


Translate

this project does not want to maintain too many custom images. Update this item to the latest. Modify the. env file to customize the image used by the lnmp-npm command ( you need to build it yourself ). "bash # lnmp _ node _ image = node : alpine lnmp _ node _ image = your / node : git-alpine' '' image of dockerfile please refer to 'dockerfile / node / dockerfile '

Tencent AI Analytic Result 😄