yii2安装后报The file or directory to be published does not exist:path/vendor/bower/jquery/dist的问题
来源:互联网 发布:万销淘宝店铺装修工具 编辑:程序博客网 时间:2024/05/19 05:01
今天在一台机器上不熟yii2环境,一切都很顺利,但是初始化的项目一运行就报错了,就是上这个错误。查看了下文件路径确实有问题,改路径?显然不显示,composer管理的地方是禁区我们不能乱动。
既然是composer生成就有问题,按就找找看有没有解决方案,于是上网搜索,还真有。
解决方案大体是这样的
#更新composersudo composer self-update#清理缓存composer clear-cache#安装最新的yii插件composer global require "fxp/composer-asset-plugin:^1.3.1"
这样环境问题解决了,接下来需要删除错误的项目重新执行composer,生成一个新的就可以了。
composer create-project --prefer-dist yiisoft/yii2-app-advanced project
我试过用composer update想通过更新的形式解决但是不行。遇到的朋友就按步骤来一遍吧,省的做无用功。
出现这个问题的原因在于composer版本太低了,这种事情很常见,有谁会没事升级composer玩啊,遇到问题的这台机器就是composer是一年前安装的。
阅读全文
0 0
- yii2安装后报The file or directory to be published does not exist:path/vendor/bower/jquery/dist的问题
- The file or directory to be published does not exist: /data/vendor/bower/jquery/dist
- Yii2: the file or directory to be published does not exist bower/jquery/dist
- 安装Yii碰到“the file or directory to be published does not exist bower/jquery/dist”
- yii2框架刚安装上报The file or directory to be published does not exist: /home/wwwroot/advanced/vendor/bower
- Yii2安装,关于The file or directory to be published does not exist错误
- yii2 The file or directory to be published does not exist
- java.lang.UnsatisfiedLinkError,(A file or directory in the path name does not exist.
- 【Yii2】Yii2执行完composer install 出现 vendor/bower/jquery/dist 找不到的解决方案
- 解决Android Studio编译后安装apk报错:The APK file does not exist on
- Android Studio编译后安装apk报错:The APK file does not exist on disk
- Android Studio编译后安装apk报错:The APK file does not exist on
- Android Studio编译后安装apk报错:The APK file does not exist on disk
- Tomcat报 XXX does not exist or is not a readable directory错误时的解决办法
- 解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- 解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- 解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- 解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- Domain=NSURLErrorDomain Code=-1005 "未能完成操作。
- Qt TCP客户端无法连接服务器
- VimH,J,K,L的由来
- 网页打印(不使用插件的情况下)
- 面试题50—树中两个节点的最低公共祖先
- yii2安装后报The file or directory to be published does not exist:path/vendor/bower/jquery/dist的问题
- SSD 之GC垃圾回收机制
- [VIM]常用快捷键
- angular使用ng-option。默认选中列表第一项
- 鄙人对jsp页面使用AJAX的一点小理解和用法
- (OK) 在内核中,获得 某目的地址的下一跳的数目,kernel 4.4
- MAC通过SSH使用PEM文件登录
- 万能解析json
- UGUI中Grid+Toggle的制作滚动下列