yii2我删除了vendor目录,然后重新composer install && composer update就不行了。。。

WBOY
Release: 2016-06-06 20:32:14
Original
1626 people have browsed it

是酱紫的,我把vendor的整个目录都删除了,然后重新执行了

<code>composer install -o --prefer-dist && composer update -o --prefer-dist
</code>
Copy after login
Copy after login

,然后网站就运行不了了。。。错误信息无非是

<code>The file or directory to be published does not exist: /www/vendor/npm/bootstrap-markdown
</code>
Copy after login
Copy after login

或者

<code>The file or directory to be published does not exist: /www/vendor/bower/jquery/dist
</code>
Copy after login
Copy after login

之类的。

注意:手动建立相应目录完全没有卵用。。。我对比过了新建的yii2项目,vendor/bower/jquery下面是有东西的

回复内容:

是酱紫的,我把vendor的整个目录都删除了,然后重新执行了

<code>composer install -o --prefer-dist && composer update -o --prefer-dist
</code>
Copy after login
Copy after login

,然后网站就运行不了了。。。错误信息无非是

<code>The file or directory to be published does not exist: /www/vendor/npm/bootstrap-markdown
</code>
Copy after login
Copy after login

或者

<code>The file or directory to be published does not exist: /www/vendor/bower/jquery/dist
</code>
Copy after login
Copy after login

之类的。

注意:手动建立相应目录完全没有卵用。。。我对比过了新建的yii2项目,vendor/bower/jquery下面是有东西的

问题解决,原因是文件夹名字不对(composer拉取下来之后是bower-assetnpm-asset,需要重命名为bowernpm,然后对每个项目进行bower installnpm install才行

很明显是bower和npm依赖没装成功吧?

你确定安装完成了啦

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template