logo

  • Hỏi Đáp
  • Kiến Thức
  • Sức Khỏe
  • Tử Vi
  • Công Nghệ
No Result
View All Result
logo
No Result
View All Result
Trang chủ updating the laravel installer

UPDATING THE LARAVEL INSTALLER

by Admin _ September 11, 2022
A developer has sent me his project lớn work with, but when ever I try khổng lồ update or install my vendors everything works great until the very end & it outputs the message bellow.

Bạn đang xem: Updating the laravel installer

C:xampphtdocsBigWaveMediadavinkit>php artisan migrate "error": "type": "Exception", "message": "expected color value: failed at `.clearfix;` C:\xampp\htdocs\BigWaveMedia\davinkit\app\start/../../public/less/style.less on line 102", "file": "C:\xampp\htdocs\davinkit\vendor\leafo\lessphp\lessc.inc.php", "line": 3258 C:xampphtdocsBigWaveMediadavinkit>Any ideas at all? Here is a full log http://pastebin.com/y9q4Rc5z


php laravel composer-php
nói qua
Follow
edited Mar 6, 2019 at 10:34
*

PaulH
2,81211 gold badge1414 silver badges3131 bronze badges
asked Jul 16, 2014 at 14:07
*

BrentBrent
2,26599 gold badges3737 silver badges6262 bronze badges
7
| Show 2 more comments

5 Answers 5


Sorted by: Reset to mặc định
Trending sort available


Trending sort Trending
sort is based off of the mặc định sorting method — by highest score — but it boosts votes that have happened recently, helping lớn surface more up-to-date answers.

It falls back khổng lồ sorting by highest score if no posts are trending.

Switch to lớn Trending sort
Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first)
59
When you run composer update, composer generates a file called composer.lock which lists all your packages & the currently installed versions. This allows you lớn later run composer install, which will install the packages listed in that file, recreating the environment that you were last using.

It appears from your log that some of the versions of packages that are listed in your composer.lock tệp tin are no longer available. Thus, when you run composer install, it complains và fails. This is usually no big khuyến mãi - just run composer update & it will attempt lớn build a phối of packages that work together và write a new composer.lock file.

Xem thêm:

However, you"re running into a different problem. It appears that, in your composer.json file, the original developer has added some pre- or post- update actions that are failing, specifically a php artisan migrate command. This can be avoided by running the following: composer update --no-scripts

This will run the composer update but will skip over the scripts added khổng lồ the file. You should be able khổng lồ successfully run the update this way.

However, this does not solve the problem long-term. There are two problems:

A migration is for database changes, not random stuff lượt thích compiling assets. Go through the migrations và remove that code from there.

Assets should not be compiled each time you run composer update. Remove that step from the composer.json file.

From what I"ve read, best practice seems to lớn be compiling assets on an as-needed basis during development (ie. When you"re making changes to lớn your LESS files - ideally using a tool like gulp.js) and before deployment.

Share Tweet Linkedin Pinterest
Previous Post

Ghi nhớ đăng nhập trong php

Next Post

Online php formatter

CÙNG CHUYÊN MỤC

fantastic blog (cms) in php with source code

Fantastic blog (cms) in php with source code

28/04/2021
php shopping cart tutorial using sessions

Php shopping cart tutorial using sessions

28/04/2021
các câu hỏi phỏng vấn php laravel

Các câu hỏi phỏng vấn php laravel

28/04/2021
lập trình php trên visual studio

Lập trình php trên visual studio

28/04/2021
installing apache php mysql on ubuntu 18

Installing apache php mysql on ubuntu 18

20/01/2023
tính kế thừa trong oop php

Tính kế thừa trong oop php

20/01/2023
how to check if a string contains a specific word in php

How to check if a string contains a specific word in php

16/01/2023
virtualmin centos with multiple php

Virtualmin centos with multiple php

16/01/2023

Newsletter

The most important automotive news and events of the day

We won't spam you. Pinky swear.

Chuyên Mục

  • Hỏi Đáp
  • Kiến Thức
  • Sức Khỏe
  • Tử Vi
  • Công Nghệ

News Post

  • Sửa lỗi some file are missing

About

Chúng tôi tạo ra trang web nhằm mục đích mang lại kiến thức bổ ích cho cộng đồng, các bài viết được sưu tầm từ nhiều nguồn trên internet giúp mang lại kiến thức khách quan dành cho bạn

©2023 darkedeneurope.com - Website WordPress vì mục đích cộng đồng

Liên Hệ - Giới Thiệu - Nội Quy - Bảo Mật

No Result
View All Result
  • Trang chủ
  • Chuyên mục
    • Hỏi Đáp
    • Kiến Thức
    • Sức Khỏe
    • Tử Vi
    • Công Nghệ
  • Lưu trữ
  • Liên hệ

© 2023 darkedeneurope.com - Website WordPress vì mục đích cộng đồng.