问题1:
执行
composer config repo.packagist composer https://packagist.phpcomposer.com
报下面错误:
File "./composer.json" cannot be found in the current directory
解决:
加上 -g [ --global ] 就可以了,用全局配置就不用去找 composer.json 文件了
问题2
composer下载网址:
https://getcomposer.org/download/
ThinkPHP 5.0.24 反序列化RCE (Windows下EXP)
https://www.cnblogs.com/xiaozhiru/p/12452528.html
问题3:
执行composer命令下载thinkphp报错:
composer安装出现的问题
https://www.jianshu.com/p/52b02c208983
composer install、update出错需要Token (hidden)
https://www.jiangxianli.com/?p=91
https://github.com/settings/tokens
PS C:\Users\dreamer> composer -g config repo.packagist composer https://packagist.phpcomposer.com
PS C:\Users\dreamer> composer create-project --prefer-dist topthink/think=5.0.x tp5024
Creating a "topthink/think=5.0.x" project at "./tp5024"
Installing topthink/think (v5.0.24)
- Installing topthink/think (v5.0.24): Downloading (100%)
Created project in C:\Users\dreamer\tp5024
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Installing topthink/think-installer (v1.0.12): Downloading (failed)
Downloading (failed)
Downloading (failed) Failed to download topthink/think-installer from dist: The "https://api.github.com/repos/top-thi
nk/think-installer/zipball/1be326e68f63de4e95977ed50f46ae75f017556d" file could not be downloaded: failed to open stream
: ÓÉÓÚÄ¿±ê¼ÆËã»ú»ý¼«¾Ü¾ø£¬ÎÞ·¨Á¬½Ó¡£
Now trying to download from source
- Installing topthink/think-installer (v1.0.12): Cloning 1be326e68f
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+WIN-VL43A3UQSOJ+2020-08-31+0134
to retrieve a token. It will be stored in "C:/Users/dreamer/AppData/Roaming/Composer/auth.json" for future use by Compos
er.
Token (hidden):
Token stored successfully.
问题4
解压zip压缩文件时出现出错:
root@centos7:/home/dreamer # unzip master.zip
Archive: master.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of master.zip or
master.zip.zip, and cannot find master.zip.ZIP, period.
可以用jar命令解压
jar xvf master.zip