composer update 更新降低版本方法
1.本來想升級到5.0.23,在根目錄下更新直接升級到5.1.31感覺版本有點高了,想降到5.0.23方案如下:
進入根目錄vim開啟composer.json 檔案
"require": { "php": ">=5.4.0", "topthink/framework": "^5.0", "topthink/think-captcha": "^1.0", "topthink/think-image": "^1.0", "topthink/think-helper": "^1.0", "ezyang/htmlpurifier": "^4.9" },
主要看這塊程式碼,想要更新到想要的版本只需要修改topthink/framework
解釋:"^5.0" 前面的^會直接檢測最新版本更新
修改方法1:"topthink/framework": "5.0.*" 去掉前面的^後面加*,表示更新到5.0.的最新版本
修改方法2:"topthink/framework": "5.0.23" 指定版本,表示更新到5.0.23版本
執行結果:
相關推薦
composer update 更新降低版本方法
1.本來想升級到5.0.23,在根目錄下更新直接升級到5.1.31感覺版本有點高了,想降到5.0.23方案如下: 進入根目錄vim開啟composer.json 檔案 "require": { "php": ">=5.4.0", "topthi
如何查看windows update更新代理版本
單擊 com ref ack 最新版 ext padding white 安裝 windows update更新代理最新版下載地址:https://support.microsoft.com/zh-cn/help/949104/how-to-update-the-windo
composer update更新thinkphp框架
1.建立一個普通許可權的使用者,避免直接使用root使用者直接更新 2.登入普通使用者,進入專案根目錄,跟composer.json檔案同一級目錄 3.直接執行composer update composer update xudeMBP:~/Project/taskw
django 一對多的添加記錄create 和save 方法,update 更新和save()方法的區別,查詢API的方法
bubuko 只有一個 pan 單獨 mode dig 萬能 .... .site 轉發之https://www.cnblogs.com/gyh04541/p/7910004.html 查詢api的方法: 表.objects.all() ---[obj1,obj2,..
win10更新1809版本後執行Dev-cpp, dos控制檯字元亂碼解決方法
微軟:請勿安裝windows10 1809版本,有bug會刪除個人檔案 雖然微軟非常利索的在釋出會後及時推送了新的windows10新版本,但自從推送後,諸多問題層出不窮。之前使用者曾表示1809版本windows 10的工作管理員存在CPU使用率錯誤顯示的問題。 不過,可
appium 版本更新後的方法變化更新收集 ---持續更新
在高版本的android手機(例如android 7.0 , 8.0等等),必須使用高版本的appium, 以及對應的selenium版本,那麼很多的appium或者selenium方法會變得無法直接呼叫,這裡是一個彙總收集。 1. driver.sendKeyEv
python3.7 更新pip版本的方法
在安裝python的一個庫時,我發現了有這樣的報錯:"You are using pip version 10.0.1, however version 18.0 is available." 解決方法: 1.cd到pip所在資料夾下,例如我的pip在C:\Users\E
使用yum更新php的版本方法
手動安裝apache php mysql實在很麻煩,所以可以用yum,但yum官方版本又太低。 以下就是用YUM升級CentOS系統中PHP和MySQL的過程: yum是CentOS系統自帶的用於方便地新增/刪除/更新RPM包的工具,它能自動解決包的倚賴性問題。 用yum更新PHP,只需用一條命令就
CentOS yum update 不升級核心版本方法
1.檢視作業系統版本 # cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) 2.執行 yum update 進行升級 # yum update # cat /etc/redhat-
更新(Update語句)查詢的方法
正 文: 資料庫更新就一種方法Update, 其標準格式:Update 表名 set 欄位=值 where 條件 不過根據資料的來源不同,還是有所區別的: 1.從外部輸入 這種比較簡單 例: update tb set UserName="XX
幾種更新(Update語句)查詢的方法
正 文: 資料庫更新就一種方法Update,其標準格式:Update 表名 set 欄位=值 where 條件只是依據資料的來源不同,還是有所差別的: 1.從外部輸入這樣的比較簡單例:update tb set UserName="XXXXX" where UserID="aasdd"2.一些
Linux更新Python版本及修改python預設版本的方法
本人在學習sdn過程中,安裝的python版本較低。很多語句不支援,為了更新python版本和修改預設版本,特寫本文。有需要的朋友可以參考下。 1、從官網下載python安裝包(這個版本可以是任意版本3.3 2.7 2.6等等,本文以2.7為例) wget http://
cordova-plugin-android-update安卓版本更新外掛使用
原文: cordova-plugin-android-update安卓版本更新外掛使用 安裝外掛,使用方法官方都有。 安卓7.0以上要在AndroidMainfest.xml里加一句 <uses-permission android:name="android.permissio
pip、pip3安裝與更新,python3安裝、解除安裝與更改Ubuntu預設Python版本方法
什麼是pip? pip是python包的管理工具,通過它你可以很好的下載python包,注意python直譯器版本不同對應的pip版本不同,如果你使用的是系統預設的python2.7的話,就要用pip安裝。python3用pip3。 ubuntu16.04.4
Linux更新核心錯誤,update-initramfs: failedb解決方法
正在設定 initramfs-tools (0.103ubuntu1.1) ... update-initramfs: deferring update (trigger activated) 正在處理用於 initramfs-tools 的觸發器... update-initramfs: Generatin
composer update 無法執行命令原因及解決方法
composer php 版本7.0 描述:無法執行composer update 報錯:The openssl extension is required for SSL/T
手動更新系統補丁時,windows update一直卡住解決方法
解決方案一: 管理員執行cmd net stop WuAuServ cd %windir% ren SoftwareDistribution SDold net start WuAuServ 解決方案二: 如果出現以下錯誤時使用: 輸入net s
docker中apt-get update更新失敗時的解決方法
在RUN apt-get update之前新增 RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \ echo '
iOS開發:2017 蘋果APP上架更新應用版本注意事項及APP版本迭代步驟方法
前幾天蘋果剛出臺新的政策協議,警告禁止使用APP熱更新,然後就收到蘋果發的警告郵件,然後並沒有在意,直到今天需要更新之前上架應用版本,才發現了問題。如果你的開發者賬號已經同意了蘋果開發者官網的最新協議
linux下更新Python版本並修改默認版本
官網 連接 oca configure 註意 code 版本號 fig 官網下載 linux下更新Python版本並修改默認版本,有需要的朋友可以參考下。 很多情況下拿到的服務器python版本很低,需要自己動手更改默認python版本 1、從官網下載python安裝包