laradocker 安装报错 ERROR: Service ‘workspace‘ failed to build:
laradocker安装报错ERROR: Service 'workspace' failed to build: The command '/bin/sh -c if [ ${INSTALL_NODE} = true ];thenmkdir -p $NVM_DIR &&curl -o- https://raw.githubusercontent.com/creationix/nv
·
laradocker 安装报错
ERROR: Service 'workspace' failed to build: The command '/bin/sh -c if [ ${INSTALL_NODE} = true ];
then mkdir -p $NVM_DIR && curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
解决办法有两种
第一种就是改下host
找到 raw.githubusercontent.com
这个域名下的真实ip然后配置到hosts
中
第二种就是修改 .env
中的一些配置
# If you need to change the sources (i.e. to China), set CHANGE_SOURCE to true
CHANGE_SOURCE=true
# Set CHANGE_SOURCE and UBUNTU_SOURCE option if you want to change the Ubuntu system sources.list file.
UBUNTU_SOURCE=aliyun
### WORKSPACE #############################################
WORKSPACE_INSTALL_NODE=false
WORKSPACE_NODE_VERSION=node
WORKSPACE_INSTALL_YARN=false
WORKSPACE_INSTALL_NPM_GULP=false
WORKSPACE_INSTALL_NPM_BOWER=false
WORKSPACE_INSTALL_NPM_VUE_CLI=false
WORKSPACE_INSTALL_NPM_ANGULAR_CLI=false
更多推荐
已为社区贡献1条内容
所有评论(0)