鍍金池/ 問答/PHP/ bower-asset/typeahead.js/dist 不存在?

bower-asset/typeahead.js/dist 不存在?

yii\base\InvalidArgumentException: The file or directory to be published does not exist: /home/vagrant/yii/test/vendor/bower-asset/typeahead.js/dist in /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetManager.php:456
Stack trace:
#0 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetBundle.php(185): yii\web\AssetManager->publish('/home/vagrant/y...', Array)
#1 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetManager.php(268): yii\web\AssetBundle->publish(Object(yii\web\AssetManager))
#2 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetManager.php(239): yii\web\AssetManager->loadBundle('yii\\gii\\TypeAhe...', Array, true)
#3 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/View.php(286): yii\web\AssetManager->getBundle('yii\\gii\\TypeAhe...')
#4 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/View.php(291): yii\web\View->registerAssetBundle('yii\\gii\\TypeAhe...', NULL)
#5 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetBundle.php(125): yii\web\View->registerAssetBundle('yii\\gii\\GiiAsse...')
#6 /home/vagrant/yii/test/vendor/yiisoft/yii2-gii/views/layouts/main.php(9): yii\web\AssetBundle::register(Object(yii\web\View))
#7 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/View.php(336): require('/home/vagrant/y...')
#8 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/View.php(254): yii\base\View->renderPhpFile('/home/vagrant/y...', Array)
#9 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Controller.php(399): yii\base\View->renderFile('/home/vagrant/y...', Array, Object(yii\gii\controllers\DefaultController))
#10 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Controller.php(385): yii\base\Controller->renderContent('<div class="def...')
#11 /home/vagrant/yii/test/vendor/yiisoft/yii2-gii/controllers/DefaultController.php(46): yii\base\Controller->render('index')
#12 [internal function]: yii\gii\controllers\DefaultController->actionIndex()
#13 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#14 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#15 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('', Array)
#16 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('gii', Array)
#17 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#18 /home/vagrant/yii/test/web/index.php(12): yii\base\Application->run()
#19 {main}
Copy Stacktrace Search Stackoverflow Search Google Exception
Invalid Argument – yii\base\InvalidArgumentException
The file or directory to be published does not exist: /home/vagrant/yii/test/vendor/bower-asset/typeahead.js/dist


使用gii的時候報了一個這樣的錯誤,

clipboard.png

指定目錄下是有文件的

回答
編輯回答
款爺

錯誤日志值的是bower-asset/typeahead.js/dist,你的截圖不夠準(zhǔn)確啊。

2018年4月21日 23:42