bower

Unable to find a suitable version for angular with bower installation error for angular-animate module

感情迁移 提交于 2019-12-06 22:40:18
问题 I am using Angular 1.2.6 . I am trying to use bower to install angular-animate and ngAnimate-animate.css. I've tried installing ( bower install --save angular-animate ), uninstalling several time and diff code on github from 1.2.16 and 1.2.17. Bower keeps wanting to install the older version of angular-animate 1.2.16 compatible with Angular 2.1.12 . All of my passing karma unit tests fail after installing angular-animate as well. I keep on getting this error. Any ideas why? bower angular

node+bower+gulp+webpack初见

流过昼夜 提交于 2019-12-06 18:17:22
node node模块管理是通过NPM(即 Node Package Manage,是 NodeJS 模块管理工具)来处理各模块之间的依赖。NPM按树状结构来管理的,支持某模块的不同版本。 [前提是本机已安装node、git环境],配置好某项目的npm配置文件package.json后,在当前项目目录下用命令npm install 或npm install --save-dev安装即可,自动将package.json中的模块安装到node-modules文件夹下。 *使用 npm 安装一些包缓慢或安装失败,建议使用淘宝镜像。 镜像使用方法(三种办法任意一种都能解决问题,建议使用第三种,将配置写死,下次用的时候配置还在): 1.通过config命令 npm config set registry https://registry.npm.taobao.org npm info underscore (如果上面配置正确这个命令会有字符串response) 2.命令行指定 npm --registry https://registry.npm.taobao.org info underscore 3.编辑 ~/.npmrc 加入下面内容 registry = https://registry.npm.taobao.org 搜索镜像: https://npm.taobao.org

Yeoman脚手架搭建angularjs1.6 (mac)

自闭症网瘾萝莉.ら 提交于 2019-12-06 17:08:38
Yeoman是什么? Yeoman按照官方说法,它不只是一个工具,还是一个工作流。它其实包括了三个部分yo、grunt、bower,分别用于项目的启动、文件操作、包管理。 Yo: Yo是一个项目初始化工具,可以生成一套启动某类项目必需的项目文件。 Bower: 一个客户端技术的软件包管理器,它可用于搜索、安装和卸载如JavaScript、HTML、CSS之类的网络资源。 GruntJS: GruntJS是基于JavaScript的命令行构建工具,它可以帮助开发者们自动化重复性的工作。 安装 基于nodejs,需要先安装 node ,安装时要确保 Add to PATH 被安装进去,然后安装依赖的包。 –安装git, http://git-scm.com/downloads ,我是windows版本,安装的时候需要注意勾选Run git from the Windows Command prompt (从Windows命令提示符下运行git)项。 –安装gruntjs,参考之前的文章: 一步一步安装Grunt –Bower是一个客户端技术的软件包管理器,它可用于搜索、安装和卸载如JavaScript、HTML、CSS之类的网络资源。 安装国内cnpm源 sudo npm install cnpm 安装bower: sudo cnpm install -g bower 安装完成后执行:

Development Workflow - Bootstrap (Less), Bower and Grunt

我是研究僧i 提交于 2019-12-06 15:07:05
I am trying to step up my game as far as my folder structure and workflow is considered. I have recently discovered that front end package management and automation of tasks are key to improve speed, decreasing dev time, decrease file size and increase profit. My issue is I am not too sure what the best method of using these tools are. I have a builds folder, which includes a dev and prod folder. My components are outside this folder in the bower_components folder. I usually customise bootstrap and take advantage of it's variables file and mixins. I have copied the bootstrap.less file, and the

Use Foundation instead of Bootstrap with SASS in a yeoman created application

喜夏-厌秋 提交于 2019-12-06 14:17:59
问题 I've created an AngularJS application with yeoman. Now I want to switch the front-end framework from bootstrap to foundation. After I installed foundation with bower install foundation --save Grunt will add the following line to my index.html file. <link rel="stylesheet" href="bower_components/foundation/css/foundation.css" /> How can I force grunt to use the sass way. For the sass way the index.html is untouched (except js files) but the main.scss file nedds the following line or simliar

Bower is not recognized as internal or external command [duplicate]

放肆的年华 提交于 2019-12-06 13:01:36
问题 This question already has answers here : bower is not recognised as an internal or external command (13 answers) Closed 2 years ago . I know the question has been asked many times but really none of them helped me. I'm on windows 10 and have successfully installed bower via npm using the following code npm install -g bower I've added the path to system environment variable but still getting the same error bower is not recognized as internal or external command. I've added the following path

vs code和node的相关使用 一一 bower 管理文件

爱⌒轻易说出口 提交于 2019-12-06 12:14:08
既然 d.ts文件已经用tsd命令行来管理了,这些项目引用的JS,UI 等也不想一个个的下载,然后复制到项目里了, 所以就安装一下bower来试试吧! npm install -g bower 结果报错了,说是git问题,去官网查下说明: Bower requires node, npm and git . windows平台下,git 必须如下安装: 好吧,我重装了一遍 git,就顺利通过了。 简单看下说明 : # registered package $ bower install jquery # GitHub shorthand $ bower install desandro/masonry # Git endpoint $ bower install git://github.com/user/package.git # URL $ bower install http://example.com/script.js 这个install命令挺人性化的,可以从git 或js文件直接安装。 如果加上 --save ,还可以记录到bower.json中去。 然后bower同样支持: bo wer.json 文件 以及 bower init 命令。 查找 包是 Search 命令 ,还可以uninstall 我使用时,遇到的问题是:我想安装 layer ,这个包

Migrating from bower to yarn

与世无争的帅哥 提交于 2019-12-06 11:39:22
Since bower package manager is deprecated now , I am finding a way to migrate my bower.json to "Yarn" without having to enter packages manually, or break dependencies. Is there any script or utility to do the migration? I've written one: https://bower.io/blog/2017/how-to-migrate-away-from-bower/ Hope it helps For me running bower-away was enough. It took a while and some iterations until it finished, but was just follow the instructions. As stated in the utility page just run the following commands: yarn global add bower-away # or "npm install -g bower-away" bower-away # listen and repeat!

Brunch installed with phoenix app doesn't work with bower assets

放肆的年华 提交于 2019-12-06 10:32:52
I have created Phoenix 1.0.4 (Elixir) application. After I had added some logic in application I wanted to switch my work for front-end part. On page http://www.jonathanbirkholz.com/how-to-use-font-awesome-on-phoenix/ I read that for 3rd assets I should use Bower. Unfortunately with font-awesome or bootstrap-sass from Bower and with command brunch build I always receive: /.../my_app/node_modules/acorn/dist/acorn.js:1747 throw err; ^ SyntaxError: Unexpected token (2:10) at Parser.pp.raise (/.../my_app/node_modules/acorn/dist/acorn.js:1745:13) at Parser.pp.unexpected (/.../my_app/node_modules

grunt-bower-task and Polymer

末鹿安然 提交于 2019-12-06 04:59:38
问题 I cannot seem to find an easy way to copy all the files from Polymer to using grunt-bower-task . grunt.initConfig({ bower: { install: { options: { targetDir: 'wwwroot/lib', layout: 'byComponent', install: true, copy: true, verbose: true, cleanTargetDir: false, bowerOptions: {} } } } I understand that only the main files defined inside each element's bower.json file get copied over. I am also aware that I could put a exportsOverride section in my own bower.json to include more files like this