bower

Unknown provider CookieStore

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am having service where I want to use the $cookieStore module. It works fine, but when unit testing it breaks, and gives the error: "$cookieStoreProvider <- $cookieStore <- filtersService". The service looks like this: serviceModule.factory('filtersService', ['$rootScope', '$location', '$cookieStore', function($rootScope, $location, $cookieStore){ return { getFilters: function(){...} } And the unit test service looks like this: describe('filtersService tests', function(){ var filtersService; beforeEach(module('App.services')); beforeEach

TypeError: undefined is not a constructor

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm very new to Angular and I'm trying to figure much of this out still. I'm writing some tests using Angular 1.5.8 which I generated from the Yeoman Generator. Specifically, I'm trying to figure out how to manipulate $httpBackend results (I'm not sure if that's important or not)... In my app.js file I have the following code: .run(['$rootScope', '$location', 'breadcrumbService', function ($rootScope, $location, breadcrumbService) { $rootScope.$on('$viewContentLoaded', function () { jQuery('html, body').animate({scrollTop: 0}, 200); });

Why does Yeoman build without glyphicons?

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm working on a webapp generator and after running grunt I got a functional app which display fonts correctly. However, when I check in the dist/ directory I don't get any fonts files. The docs state that grunt command build the application for deployment , but the dist/ directory isn't autonomous. Gruntfile.js config My copy:dist task is as follow: dist : { files : [{ expand : true , dot : true , cwd : '<%= yeoman.app %>' , dest : '<%= yeoman.dist %>' , src : [ '*.{ico,png,txt}' , '.htaccess' , 'images/{,*/}*.{webp,gif}' ,

Browserify and bower. Canonical approach

試著忘記壹切 提交于 2019-12-03 02:54:22
问题 The way I'm using packages that not available out of the box in npm, right now is like that: package.json has: "napa": { "angular": "angular/bower-angular", "angular-animate": "angular/bower-angular-animate", "d3": "mbostock/d3", "ui-router":"angular-ui/ui-router", "bootstrap":"twbs/bootstrap" }, "scripts": { "install": "node node_modules/napa/bin/napa" and that installs files into node_modules directory, and I use them natively like this require('angular/angular') require('ui-router') ...

bower install self_signed_cert_in_chain

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am building a angular app in windows, using git bash, so far I have been able to scaffold using yo, no issues, however when I am trying to issue the following command. Can someone please point me to resolve this issue. bower install angular-bootstrap I am getting the following error: bower error Request to https://bower.herokuapp.com/packages/angular-reso urce failed: SELF_SIGNED_CERT_IN_CHAIN Stack trace: Error: Request to https://bower.herokuapp.com/packages/angular-resource failed: SELF_SIGNED_CERT_IN_CHAIN at createError (c:\Users

configure node express to serve static bower_components?

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a directory structure projectName | - bower_components/ | - public/ | - css | - js | - index.html | - Gruntfile.js | - package.json | - bower.json | - app.js I would like to start my app and serve index.html with node. So in app.js I have: var express = require('express'); var port = process.env.PORT || 3000; var app = express(); app.configure(function(){ // Serve up content from public directory app.use(express.static(__dirname + '/public')); app.use(app.router); app.use(express.logger()); }); app.listen(port, function(){ console.log

Cannot update yii2 via composer bower-asset/jquery could not be found

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I was updating my yii2 via composer then reverted back to the old beta version. Here is the error on my composer: Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested package bower-asset/jquery could not be found in any version, there may be a typ o in the package name. Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your

How do you uninstall all your bower packages?

流过昼夜 提交于 2019-12-03 02:42:09
问题 Sometimes it's useful to rebuild an entire site and force bower to reinstall new versions of all the packages in bower.json. However, there doesn't seem to be any way of doing that: Attempt #1: $ bower uninstall bower not-installed 0 Nope, that only works on a package-by-package basis, even though a clean 'bower install' uses bower.json. Attempt #2: $ bower install -f -l 0 $ Nope, despite '-f', this does absolutely nothing if the dependencies are met. Attempt #3: $ rm -r bower_components $ !

Bower: “command not found” after installation

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I seem to be getting the following when I execute npm install bower -g /usr/local/share/npm/bin/bower -> /usr/local/share/npm/lib/node_modules/bower/bin/bower bower@0.8.6 /usr/local/share/npm/lib/node_modules/bower Unfortunately executing any of the bower commands returns -bash: bower: command not found which npm returns /usr/local/bin/npm and running which node returns /usr/local/bin/node . 回答1: I assume you installed Node.js through Homebrew, which annoyingly puts installed npm binaries in a place that is usually not in a users path. All

Webpack with bower support

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Would I like to load preferably the node packages, and only if not exist, loads the bower package. I would just use the node package only as recommended in Webpack site, but I need to load a library that is just in bower, https://github.com/Stamplay/stamplay-js-sdk and https://github.com/Stamplay/angular-stamplay Try with bower-webpack-plugin I installed https://github.com/lpiepiora/bower-webpack-plugin But when I run webpack-dev-server -d --watch the error is displayed in chrome console: Uncaught TypeError: angular.module is not a function