我正在尝试制作我的第一个自耕农应用程序.我按照以下链接中的每一步操作:http://ponderingdeveloper.com/2013/03/08/preparing-a-windows-machine-to-use-yeoman/
当我执行yo webapp一切顺利.
但是当我使用grunt命令时,我面临以下错误:
grunt --trace
Running "jshint:all" (jshint) task
>> 4 files lint free.
Running "clean:server" (clean) task
Cleaning ".tmp"...OK
Running "concurrent:test" (concurrent) task
Running "coffee:dist" (coffee) task
Warning: Errno::ENOENT on line ["33"] of C: No such file or directory - C:/D
ysk Google/Sublime/Norbert/motocycle/app/bower_components
Run with --trace to see the full backtrace Use --force to continue.
Aborted due to warnings.
Run Code Online (Sandbox Code Playgroud)
我找了bower_components文件夹 - 它不存在.我知道我可以更改文件中的.bowerrc目录,但我不知道哪个目录是正确的,我找不到它.
编辑:程序版本:
C:\Dysk Google\Sublime\Norbert\motocycle>grunt --version
grunt-cli v0.1.8 …Run Code Online (Sandbox Code Playgroud) 我一直在研究drupal angularjs模块.我已经安装了bootstrap ui,工作正常.但是,当我使用模态框时,它不起作用.
控制器内的代码:
$scope.alertOnEventClick = function( event, allDay, jsEvent, view ){
$scope.alertMessage = (event.title + ' was clicked ');
console.log($modal);
var modalInstance = $modal.open({
//templateUrl: Drupal.settings.angularjsApp.basePath + '/ng_node/calender/popup',
template: "<div class='modal-header'><h3 class='modal-title'>I'm a modal!</h3>" +
"</div><div class='modal-body'><ul><li>jfksdfhjksd</li><li>jfksdfhjksd</li><li>jfksdfhjksd</li></ul></div>"+
"<div class='modal-footer'><button class='btn btn-primary'>OK</button>" +
"<button class='btn btn-warning'>Cancel</button></div>",
controller: ModalInstanceCtrl,
scope: $scope
});
function ModalInstanceCtrl($scope, $modalInstance) {
console.log("controller class called")
};
Run Code Online (Sandbox Code Playgroud)
我仍然面临着bootstrap ui popup模型的问题.