应用程序创建期间没有出现任何异常。成功创建应用程序后,我尝试使用以下命令运行该应用程序:yo angular-fullstack 应用程序名称
期望服务器开始运行。但是,“grunt serve”失败并显示以下错误信息:grunt serve
我确实找到了.bowerrc文件,并且它指向app/bower_components。不幸的是,bower_components文件无处可寻。我不确定该文件的内容是否会导致此问题,或者是否有npm包我没有正确安装。Running "bower-install:app" (bower-install) task Cannot find where you keep your Bower packages.
We tried looking for a
.bowerrc
file, but couldn't find a customdirectory
property defined. We then triedbower_components
, but it looks like that doesn't exist either. As a last resort, we tried the pre-1.0components
directory, but that also couldn't be found.Unfortunately, we can't proceed without knowing where the Bower packages you have installed are.
Fatal error: No Bower components found.
- 我也使用npm安装了bower *
bower install
...它将安装依赖项到app/bower_components
,然后应该可以工作。 - doodeec