yeoman-generator-angular

UNMET PEER DEPENDENCY generator-karma@>=0.9.0

最后都变了- 提交于 2019-12-05 16:11:01
I am installing version 5.6 of node.js on a CentOS 7 server with generator-angular , and am encountering the following error, in addition to some deprecation warnings: UNMET PEER DEPENDENCY generator-karma@>=0.9.0 I am following instructions from this tutorial . How can I resolve this error so that npm is able to successfully install generator-angular ? Also, are all the deprecation warnings anything to be concerned about? Is there a way to install generator-angular without using deprecated methods? Here is the terminal output showing the ERROR along with the deprecation warnings: [root

Building Yeoman app breaks CSS background images

流过昼夜 提交于 2019-12-04 14:31:35
I'm trying to migrate an existing project to Yeoman/Grunt/Bower. After changing the paths inside Gruntfile.js I noticed the image paths aren't built correctly: background:transparent url(/Users/lucian/Projects/[PROJECT]/src/main/resources/com/app/public/portal/.tmp/images/bg.header.png) center top no-repeat scroll; After checking everything thoroughly I went back to the Yeoman AngularJS generated project and checked to see if the same thing happens. So I added to main.css : .marketing { background-image: url("../images/yeoman.png"); margin: 40px 0; } And after building the project I noticed

yo angular generates files in wrong path ( home directory )

a 夏天 提交于 2019-12-04 10:11:41
问题 yo angular generates the files in my home directory and I don't know why. I did the following: ppa for node curl -sL https://deb.nodesource.com/setup | sudo bash - then install node sudo apt-get install -y nodejs create a symlink sudo ln -s "$(which nodejs)" /usr/bin/node install yeoman sudo npm install -g yo sudo npm install -g generator-angular next steps from the instruction from https://github.com/yeoman/generator-angular mkdir my-new-project && cd $_ now I run yo angular test1 now all

grunt serve from a fresh Yeoman install returns - Warning: Task “serve” not found

孤街醉人 提交于 2019-12-04 04:44:13
After running yo angular and then cd 'ing into the application's root folder (at same level as the app folder, gruntfile , package.json etc) I try grunt serve and I get the above error. Grunt won't start a server for me. I have searched all over but couldn't find say to run npm install and bower install within the application's root directory, which I have tried but still the same error. I've updated and checked bower/grunt/npm and they're all good. Any suggestions please? bitfidget I think I have found a solution! http://yang-wei.github.io/blog/2014/06/01/npm-install-issues-plus-angularjs-set

yo angular generates files in wrong path ( home directory )

与世无争的帅哥 提交于 2019-12-03 05:10:30
yo angular generates the files in my home directory and I don't know why. I did the following: ppa for node curl -sL https://deb.nodesource.com/setup | sudo bash - then install node sudo apt-get install -y nodejs create a symlink sudo ln -s "$(which nodejs)" /usr/bin/node install yeoman sudo npm install -g yo sudo npm install -g generator-angular next steps from the instruction from https://github.com/yeoman/generator-angular mkdir my-new-project && cd $_ now I run yo angular test1 now all the files will be created in my home directory instead of the my-new-project directory where I am

How to ng-click an A directive in a PhantomJS test

纵饮孤独 提交于 2019-12-02 05:34:50
问题 App generated by Yeoman with angular-generator. Directive: angular.module('psApp').directive('scrollTop', function () { return { restrict: 'A', scope: true, template: '<a href="#" ng-click="click()" class="scroll-top"><span class="glyphicon glyphicon-arrow-up"></span> Back to top</a>', controller: ['$scope', '$element', '$document', function ($scope, $element, $document) { $scope.click = function () { $document.scrollTop(0, 500); }; }] }; }); Test: describe('Directive: scrollTop', function ()

generator-angular module is not creating a new project

给你一囗甜甜゛ 提交于 2019-12-01 04:18:16
I am new to yeoman set of tools. I run following commands in Ubuntu 12 $ npm install -g yo $ npm install -g generator-webapp $ yo webapp I am able to create a web app project. After that I tried to create an angular project. First I run a command $ npm install -g generator-angular And no error is displayed with installation of this generator. When I run the command $ yo angular I get the error: Error angular You don't seem to have a generator with the name angular installed. You can see available generators with npm search yeoman-generator and then install them with npm install [name]. To see

generator-angular module is not creating a new project

醉酒当歌 提交于 2019-12-01 01:19:04
问题 I am new to yeoman set of tools. I run following commands in Ubuntu 12 $ npm install -g yo $ npm install -g generator-webapp $ yo webapp I am able to create a web app project. After that I tried to create an angular project. First I run a command $ npm install -g generator-angular And no error is displayed with installation of this generator. When I run the command $ yo angular I get the error: Error angular You don't seem to have a generator with the name angular installed. You can see

Yeoman and Bower not adding Bootstrap CSS (AngularJS generator)

时光怂恿深爱的人放手 提交于 2019-11-29 22:51:47
I am following along a codelab on the Yeoman webpage, and so far I've managed to follow along (with a few major hiccups getting my development environment going, but now it doesn't return any errors). So I made my project folder and ran yo , selected AngularJS and run the thing. Fairly soon into the process I got a prompt ? Overwrite package.json? I answered with y and got the following warnings: npm WARN package.json codelab@0.0.0 No license field. npm WARN peerDependencies The peer dependency karma@>=0.9 included from karma-jasmine will no npm WARN peerDependencies longer be automatically

Routing issue with AngularJS project using yeoman setup [duplicate]

筅森魡賤 提交于 2019-11-28 00:33:38
This question already has an answer here: AngularJS: How to remove #!/ (bang prefix) from URL? 6 answers I have setup a new Angular project using yeoman. Angular version is 1.6.0. Project setup was successful but I have been facing an issue with routing Task runner - Grunt When I run the project in local my local page will load with URL http://localhost:9000/#!/ I was expecting http://localhost:9000/#/ When clicked on About link browser is routed to http://localhost:9000/#!/%23%2Fabout Expectation: http://localhost:9000/#/about When I click home link browser is routed to http://localhost:9000/