Yii2 I deleted the vendor directory and then composer install && composer update ...

Source: Internet
Author: User
Tags composer install
It was Jiangzi, I deleted the entire directory of vendor, and then I re-executed it.

composer install -o --prefer-dist && composer update -o --prefer-dist

, then the site will not run ... The error message is nothing more than

The file or directory to be published does not exist: /www/vendor/npm/bootstrap-markdown

Or

The file or directory to be published does not exist: /www/vendor/bower/jquery/dist

Sort of.

Note: Manually set up the corresponding directory with no OVA at all ... I've compared the new yii2 project, and vendor/bower/jquery here's something.

Reply content:

It was Jiangzi, I deleted the entire directory of vendor, and then I re-executed it.

composer install -o --prefer-dist && composer update -o --prefer-dist

, then the site will not run ... The error message is nothing more than

The file or directory to be published does not exist: /www/vendor/npm/bootstrap-markdown

Or

The file or directory to be published does not exist: /www/vendor/bower/jquery/dist

Sort of.

Note: Manually set up the corresponding directory with no OVA at all ... I've compared the new yii2 project, and vendor/bower/jquery here's something.

The problem is resolved because the folder name is incorrect (composer is followed by a bower-asset and, need to be renamed npm-asset to bower and npm , then for each item to be made bower install or npm install not.)

Is it obvious that Bower and NPM depend on the success of the installation?

Are you sure the installation is complete?

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.